Preventing label class 'none' from being actively used
authorAlexander Ebert <ebert@woltlab.com>
Tue, 9 Jul 2013 16:22:03 +0000 (18:22 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 9 Jul 2013 16:22:03 +0000 (18:22 +0200)
wcfsetup/install/files/lib/data/label/Label.class.php

index 6ee4711111bfb9bd270f9ec8acfa4476b9abc667..baf9dd52bdab34e3705eec89bd46def8421a730e 100644 (file)
@@ -67,4 +67,17 @@ class Label extends DatabaseObject implements IRouteController {
        public function getTitle() {
                return WCF::getLanguage()->get($this->label);
        }
+       
+       /**
+        * Returns label CSS class names.
+        * 
+        * @return      string
+        */
+       public function getClassNames() {
+               if ($this->cssClassName == 'none') {
+                       return '';
+               }
+               
+               return $this->cssClassName;
+       }
 }