Nikerabbit has uploaded a new change for review. https://gerrit.wikimedia.org/r/121957
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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads refs/changes/57/121957/1 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: newchange Gerrit-Change-Id: I1e7fe7df9e3e81fbd4c687abaae6ca027f55f0c7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LiquidThreads Gerrit-Branch: master Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits