From: Alexander Ebert Date: Tue, 9 Jul 2013 16:22:03 +0000 (+0200) Subject: Preventing label class 'none' from being actively used X-Git-Tag: 2.0.0_Beta_5~86 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f67e27536dcad0d3ee313a2bd815948220b82015;p=GitHub%2FWoltLab%2FWCF.git Preventing label class 'none' from being actively used --- diff --git a/wcfsetup/install/files/lib/data/label/Label.class.php b/wcfsetup/install/files/lib/data/label/Label.class.php index 6ee4711111..baf9dd52bd 100644 --- a/wcfsetup/install/files/lib/data/label/Label.class.php +++ b/wcfsetup/install/files/lib/data/label/Label.class.php @@ -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; + } }