From e3994942d373d865a0dabc8c519ac146fd570c4e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 26 Feb 2008 01:23:19 +0000 Subject: [PATCH] Merged revisions 50182 via svnmerge from svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.1-dnc ........ r50182 | ischommer | 2008-02-26 13:36:52 +1300 (Tue, 26 Feb 2008) | 1 line documentation ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@50187 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/Director.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/control/Director.php b/core/control/Director.php index f5ad9f755..13ab6dabd 100644 --- a/core/control/Director.php +++ b/core/control/Director.php @@ -451,6 +451,8 @@ class Director { /** * Sets the site mode (if it is the public site or the cms), * and runs registered modules. + * + * @param string $mode 'site' or 'cms' */ static function set_site_mode($mode) { Director::$siteMode = $mode; @@ -462,6 +464,9 @@ class Director { } } + /** + * @return string 'site' or 'cms' + */ static function get_site_mode() { return Director::$siteMode; }