jenkins-bot has submitted this change and it was merged.

Change subject: Fix incorrect usage of Title::newFromText
......................................................................


Fix incorrect usage of Title::newFromText

Change-Id: Icc69e47eae59653e4d8c3b227cccb7ea046e521b
---
M model/Event.php
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Addshore: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/model/Event.php b/model/Event.php
index 0ce6fd4..0fdfed7 100644
--- a/model/Event.php
+++ b/model/Event.php
@@ -390,9 +390,9 @@
                } elseif ( $this->pageId ) {
                        return $this->title = Title::newFromId( $this->pageId );
                } elseif ( isset( $this->extra['page_title'], 
$this->extra['page_namespace'] ) ) {
-                       return $this->title = Title::newFromText(
-                               $this->extra['page_title'],
-                               $this->extra['page_namespace']
+                       return $this->title = Title::makeTitleSafe(
+                               $this->extra['page_namespace'],
+                               $this->extra['page_title']
                        );
                }
                return null;

-- 
To view, visit https://gerrit.wikimedia.org/r/116273
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icc69e47eae59653e4d8c3b227cccb7ea046e521b
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Bartosz DziewoƄski <[email protected]>
Gerrit-Reviewer: Bsitu <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to