mirror of
https://github.com/jonom/silverstripe-betternavigator.git
synced 2024-10-22 14:05:51 +02:00
Change constructor name for compatibility with PHP7
http://php.net/manual/en/migration70.deprecated.php
This commit is contained in:
parent
a050d926de
commit
29124aed0a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user