Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit bdcb6db

Browse files
author
Otis Wright
committed
Update ExtraPageFieldsExtension.php
1 parent 29476e7 commit bdcb6db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/ExtraPageFieldsExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public function onBeforeWrite()
6666
parent::onBeforeWrite();
6767

6868

69-
if (strlen($this->owner->MetaDescription) > $this->metaDescriptionLength) {
69+
if (strlen($this->owner->MetaDescription) > $this->MetaDescriptionLength) {
7070
/** @var Text $value */
7171
$value = $this->owner->dbObject('MetaDescription');
72-
$value = $value->LimitCharacters($this->metaDescriptionLength);
72+
$value = $value->LimitCharacters($this->MetaDescriptionLength);
7373
$this->owner->MetaDescription = $value;
7474
};
7575

0 commit comments

Comments
 (0)