mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-13 17:57:15 +00:00
Merge "Parsoid provides ns-prefixed template titles => don't use NS_TEMPLATE"
This commit is contained in:
commit
a6591c4b03
|
@ -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 '—';
|
||||
|
|
Loading…
Reference in a new issue