mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
acef8b8859
commit
e3994942d3
@ -451,6 +451,8 @@ class Director {
|
|||||||
/**
|
/**
|
||||||
* Sets the site mode (if it is the public site or the cms),
|
* Sets the site mode (if it is the public site or the cms),
|
||||||
* and runs registered modules.
|
* and runs registered modules.
|
||||||
|
*
|
||||||
|
* @param string $mode 'site' or 'cms'
|
||||||
*/
|
*/
|
||||||
static function set_site_mode($mode) {
|
static function set_site_mode($mode) {
|
||||||
Director::$siteMode = $mode;
|
Director::$siteMode = $mode;
|
||||||
@ -462,6 +464,9 @@ class Director {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string 'site' or 'cms'
|
||||||
|
*/
|
||||||
static function get_site_mode() {
|
static function get_site_mode() {
|
||||||
return Director::$siteMode;
|
return Director::$siteMode;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user