Change constructor name for compatibility with PHP7

http://php.net/manual/en/migration70.deprecated.php
This commit is contained in:
mi3ll 2016-01-27 10:51:38 +11:00
parent a050d926de
commit 29124aed0a

View File

@ -22,7 +22,9 @@ class BetterNavigator extends DataExtension {
*
* @return string
*/
public function BetterNavigator() {
public function __construct() {
parent::__construct();
// Make sure this is a page
if (!($this->owner && $this->owner->dataRecord && $this->owner->dataRecord instanceof SiteTree && $this->owner->dataRecord->ID > 0)) return false;