|
|
@@ -94,7 +94,8 @@ class OtPageRepository extends PageRepository
|
|
|
public function getCurrentTemplate() {
|
|
|
$rootPageUid = $this->getCurrentSiteRootPageId();
|
|
|
if (!($rootPageUid >= 0)) {
|
|
|
- throw new \RuntimeException('Can not find any root page');
|
|
|
+// throw new \RuntimeException('Can not find any root page');
|
|
|
+ return self::defaultTemplate;
|
|
|
}
|
|
|
|
|
|
$rootPage = $this->getPage($rootPageUid);
|