diff --git a/code/extensions/ErrorPageSubsite.php b/code/extensions/ErrorPageSubsite.php index 60c58007..93be31e8 100644 --- a/code/extensions/ErrorPageSubsite.php +++ b/code/extensions/ErrorPageSubsite.php @@ -28,7 +28,7 @@ public function alternateFilepathForErrorcode($statusCode, $locale = null) $subdomainPart = ''; // Try to get current subsite from session - $subsite = Subsite::currentSubsite(false); + $subsite = Subsite::currentSubsite(); // since this function is called from Page class before the controller is created, we have to get subsite from domain instead if (!$subsite) {