Skip to content

Commit

Permalink
1.33 Compatibility fix
Browse files Browse the repository at this point in the history
The minimum required version is now 1.31
  • Loading branch information
nbdd0121 committed Jul 29, 2019
1 parent fbf8a7f commit 9aa2e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion echo/PresentationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected function htmlToText($html) {
}

protected function getTruncatedBody($text) {
return $this->language->embedBidi($this->language->truncate($text, 150, '...', false));
return $this->language->embedBidi($this->language->truncateForVisual($text, 150, '...', false));
}

public function canRender() {
Expand Down
2 changes: 1 addition & 1 deletion includes/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static function canEverPostOnTitle(\Title $title) {
}

// These could be explicitly allowed in later version
if (!$title->canTalk()) {
if (!$title->canHaveTalkPage()) {
return false;
}

Expand Down

0 comments on commit 9aa2e11

Please sign in to comment.