Skip to content

Commit

Permalink
bug in MetaTitle() function
Browse files Browse the repository at this point in the history
  • Loading branch information
jellygnite committed Apr 29, 2021
1 parent c05b038 commit c5a25fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

4 changes: 2 additions & 2 deletions src/Extensions/PageControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public function MetaTitle(){
if($this->owner->dbObject('MetaTitle') && $this->owner->dbObject('MetaTitle')->getValue()){
return $this->owner->dbObject('MetaTitle')->getValue();
}

return ( method_exists($this->owner, 'defaultMetaTitle') && $this->owner->defaultMetaTitle() ) ?: $this->owner->Title;
return ( $this->owner->hasMethod('defaultMetaTitle') && $this->owner->defaultMetaTitle() ) ? $this->owner->defaultMetaTitle() : $this->owner->Title;
}


}

0 comments on commit c5a25fe

Please sign in to comment.