"Santhosh.thottingal" posted a comment on MediaWiki.r107336. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107336#c28557
Commit summary for MediaWiki.r107336: Adding POC {{#translationdialog:title}} functionality. Santhosh.thottingal's comment: we need to some null checks and validations in the below lines <pre> + $handle = new MessageHandle( $title ); + $group = $handle->getGroup(); + $callParams = array( $title->getPrefixedText(), $group->getId() ); </pre> An invalid title causes error here: PHP Fatal error: Call to a member function getId() on a non-object in /path/to/wiki/extensions/Translate/TranslateHooks.php on line 339, _______________________________________________ MediaWiki-CodeReview mailing list mediawiki-coderev...@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview