From f67e27536dcad0d3ee313a2bd815948220b82015 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 9 Jul 2013 18:22:03 +0200 Subject: [PATCH] Preventing label class 'none' from being actively used --- .../install/files/lib/data/label/Label.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; + } } -- 2.20.1