|
@@ 1572-1575 (lines=4) @@
|
| 1569 |
|
} |
| 1570 |
|
$c++; |
| 1571 |
|
} |
| 1572 |
|
if (empty($page)) { |
| 1573 |
|
$message = 'This page (ID ' . $thisUid . ') is of type "Shortcut" and configured to redirect to a subpage. ' . 'However, this page has no accessible subpages.'; |
| 1574 |
|
throw new PageNotFoundException($message, 1301648328); |
| 1575 |
|
} |
| 1576 |
|
break; |
| 1577 |
|
case PageRepository::SHORTCUT_MODE_PARENT_PAGE: |
| 1578 |
|
$parent = $this->sys_page->getPage($idArray[0] ? $idArray[0] : $thisUid, $disableGroupCheck); |
|
@@ 1580-1583 (lines=4) @@
|
| 1577 |
|
case PageRepository::SHORTCUT_MODE_PARENT_PAGE: |
| 1578 |
|
$parent = $this->sys_page->getPage($idArray[0] ? $idArray[0] : $thisUid, $disableGroupCheck); |
| 1579 |
|
$page = $this->sys_page->getPage($parent['pid'], $disableGroupCheck); |
| 1580 |
|
if (empty($page)) { |
| 1581 |
|
$message = 'This page (ID ' . $thisUid . ') is of type "Shortcut" and configured to redirect to its parent page. ' . 'However, the parent page is not accessible.'; |
| 1582 |
|
throw new PageNotFoundException($message, 1301648358); |
| 1583 |
|
} |
| 1584 |
|
break; |
| 1585 |
|
default: |
| 1586 |
|
$page = $this->sys_page->getPage($idArray[0], $disableGroupCheck); |
|
@@ 1587-1590 (lines=4) @@
|
| 1584 |
|
break; |
| 1585 |
|
default: |
| 1586 |
|
$page = $this->sys_page->getPage($idArray[0], $disableGroupCheck); |
| 1587 |
|
if (empty($page)) { |
| 1588 |
|
$message = 'This page (ID ' . $thisUid . ') is of type "Shortcut" and configured to redirect to a page, which is not accessible (ID ' . $idArray[0] . ').'; |
| 1589 |
|
throw new PageNotFoundException($message, 1301648404); |
| 1590 |
|
} |
| 1591 |
|
} |
| 1592 |
|
// Check if short cut page was a shortcut itself, if so look up recursively: |
| 1593 |
|
if ($page['doktype'] == PageRepository::DOKTYPE_SHORTCUT) { |