Merge "Parsoid provides ns-prefixed template titles => don't use NS_TEMPLATE"

This commit is contained in:
jenkins-bot 2017-07-05 20:22:40 +00:00 committed by Gerrit Code Review
commit a6591c4b03

View file

@ -149,7 +149,9 @@ class LintErrorsPager extends TablePager {
return $this->msg( 'multi-part-template-block' )->escaped();
} else {
$templateName = $lintError->templateInfo['name'];
$templateTitle = Title::newFromText( $templateName, NS_TEMPLATE );
// Parsoid provides us with fully qualified template title
// So, fallback to the default main namespace
$templateTitle = Title::newFromText( $templateName );
if ( !$templateTitle ) {
// Shouldn't be possible...???
return '—';