Skip to content

Commit

Permalink
Let the page model tell if useAutoItem is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Apr 8, 2020
1 parent 223182e commit 168c218
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core-bundle/src/Resources/contao/models/PageModel.php
Expand Up @@ -28,6 +28,7 @@
* @property string $pageTitle
* @property string $language
* @property boolean $useFolderUrl
* @property boolean $useAutoItem
* @property string $robots
* @property string $description
* @property string $redirect
Expand Down Expand Up @@ -995,6 +996,7 @@ public function loadDetails()
$this->enforceTwoFactor = $objParentPage->enforceTwoFactor;
$this->twoFactorJumpTo = $objParentPage->twoFactorJumpTo;
$this->useFolderUrl = $objParentPage->useFolderUrl;
$this->useAutoItem = Config::get('useAutoItem');

// Store whether the root page has been published
$this->rootIsPublic = ($objParentPage->published && ($objParentPage->start == '' || $objParentPage->start <= $time) && ($objParentPage->stop == '' || $objParentPage->stop > ($time + 60)));
Expand Down

0 comments on commit 168c218

Please sign in to comment.