Skip to content

Commit

Permalink
Update ExtraPageFieldsExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Otis Wright committed Apr 14, 2016
1 parent 29476e7 commit bdcb6db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ExtraPageFieldsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public function onBeforeWrite()
parent::onBeforeWrite();


if (strlen($this->owner->MetaDescription) > $this->metaDescriptionLength) {
if (strlen($this->owner->MetaDescription) > $this->MetaDescriptionLength) {
/** @var Text $value */
$value = $this->owner->dbObject('MetaDescription');
$value = $value->LimitCharacters($this->metaDescriptionLength);
$value = $value->LimitCharacters($this->MetaDescriptionLength);
$this->owner->MetaDescription = $value;
};

Expand Down

0 comments on commit bdcb6db

Please sign in to comment.