From: Marcel Werk Date: Sun, 27 Jan 2013 14:43:57 +0000 (+0100) Subject: Added method to get all styles X-Git-Tag: 2.0.0_Beta_1~538 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=57852bf4d6974ca230f58f8fa7fa75a7151e7487;p=GitHub%2FWoltLab%2FWCF.git Added method to get all styles --- diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index 5a9a6befba..79f144bcca 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -61,6 +61,15 @@ class StyleHandler extends SingletonFactory { return $styles; } + /** + * Returns a list of all styles. + * + * @return array + */ + public function getStyles() { + return $this->cache['styles']; + } + /** * Returns the active style. *