From ac851e6f82dac4e0b8c7ef3c4b9166eb41489c5a Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sat, 11 Dec 2010 01:34:47 +0000 Subject: [PATCH] FEATURE: added get_theme_folder() to return the full path to the themes folder git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114814 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/SSViewer.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/SSViewer.php b/core/SSViewer.php index 818c92398..4e5f8194f 100755 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -132,6 +132,15 @@ class SSViewer { return self::$current_theme; } + /** + * Returns the path to the theme folder + * + * @return String + */ + static function get_theme_folder() { + return self::current_theme() ? THEMES_DIR . "/" . self::current_theme() : project(); + } + /** * @return string */