From 9aa2e11a748d61e4cf5de67afd4616fabf0e3756 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Mon, 29 Jul 2019 16:43:53 +0000 Subject: [PATCH] 1.33 Compatibility fix The minimum required version is now 1.31 --- echo/PresentationModel.php | 2 +- includes/Helper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/echo/PresentationModel.php b/echo/PresentationModel.php index 6c4e1ad..13b65d4 100644 --- a/echo/PresentationModel.php +++ b/echo/PresentationModel.php @@ -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() { diff --git a/includes/Helper.php b/includes/Helper.php index 131571c..be414e2 100644 --- a/includes/Helper.php +++ b/includes/Helper.php @@ -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; }