mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Removed obsolete cache argument from currentSubsiteID() (from r80862)
This commit is contained in:
parent
68dfd71c5e
commit
503ec12dd8
@ -205,7 +205,7 @@ JS;
|
|||||||
* @param boolean $cache
|
* @param boolean $cache
|
||||||
* @return int ID of the current subsite instance
|
* @return int ID of the current subsite instance
|
||||||
*/
|
*/
|
||||||
static function currentSubsiteID($cache = true) {
|
static function currentSubsiteID() {
|
||||||
if(isset($_REQUEST['SubsiteID'])) {
|
if(isset($_REQUEST['SubsiteID'])) {
|
||||||
$id = (int)$_REQUEST['SubsiteID'];
|
$id = (int)$_REQUEST['SubsiteID'];
|
||||||
} else {
|
} else {
|
||||||
@ -213,7 +213,7 @@ JS;
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($id) || $id === NULL) {
|
if(!isset($id) || $id === NULL) {
|
||||||
$id = self::getSubsiteIDForDomain($cache);
|
$id = self::getSubsiteIDForDomain();
|
||||||
Session::set('SubsiteID', $id);
|
Session::set('SubsiteID', $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user