-
-
Save KorvinSzanto/78065327a6782ae3a95d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function display() { | |
$page = Page::getCurrentPage(); | |
if(!$page->cID) { | |
$page = Page::getByPath("/page_not_found"); | |
if(!$page->cID) { | |
$page = Page::getByID("/some_new_page"); | |
} | |
} | |
parent::getOrCreate($page, $this->arHandle, 1); | |
parent::display($page); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment