jenkins-bot has submitted this change and it was merged. Change subject: Avoid fatal errors in api ......................................................................
Avoid fatal errors in api PHP Fatal error: Call to a member function getPrefixedText() on a non-object Change-Id: I1e7fe7df9e3e81fbd4c687abaae6ca027f55f0c7 --- M api/ApiFeedLQTThreads.php 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: Siebrand: Looks good to me, approved jenkins-bot: Verified diff --git a/api/ApiFeedLQTThreads.php b/api/ApiFeedLQTThreads.php index f72901c..a9b255b 100644 --- a/api/ApiFeedLQTThreads.php +++ b/api/ApiFeedLQTThreads.php @@ -168,6 +168,9 @@ $talkpages = (array)$params['talkpage']; foreach ( $talkpages as $page ) { $title = Title::newFromText( $page ); + if ( !$title ) { + $this->dieUsageMsg( array( 'invalidtitle', $page ) ); + } $pageCond = array( 'thread_article_namespace' => $title->getNamespace(), 'thread_article_title' => $title->getDBkey() -- To view, visit https://gerrit.wikimedia.org/r/121957 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I1e7fe7df9e3e81fbd4c687abaae6ca027f55f0c7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LiquidThreads Gerrit-Branch: master Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits