mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-09-29 20:59:10 +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
|
||||
* @return int ID of the current subsite instance
|
||||
*/
|
||||
static function currentSubsiteID($cache = true) {
|
||||
static function currentSubsiteID() {
|
||||
if(isset($_REQUEST['SubsiteID'])) {
|
||||
$id = (int)$_REQUEST['SubsiteID'];
|
||||
} else {
|
||||
@ -213,7 +213,7 @@ JS;
|
||||
}
|
||||
|
||||
if(!isset($id) || $id === NULL) {
|
||||
$id = self::getSubsiteIDForDomain($cache);
|
||||
$id = self::getSubsiteIDForDomain();
|
||||
Session::set('SubsiteID', $id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user