mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
2f56a8bcad
commit
ac851e6f82
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user