mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-15 03:35:47 +00:00
Merge "Avoid variable reuse under same name"
This commit is contained in:
commit
56de6c706c
|
@ -224,19 +224,19 @@ class TemplateStylesHooks {
|
|||
|
||||
$content = $rev ? $rev->getContent() : null;
|
||||
if ( !$content ) {
|
||||
$title = $title->getPrefixedText();
|
||||
$titleText = $title->getPrefixedText();
|
||||
return self::formatTagError( $parser, [
|
||||
'templatestyles-bad-src-missing',
|
||||
$title,
|
||||
wfEscapeWikiText( $title )
|
||||
$titleText,
|
||||
wfEscapeWikiText( $titleText )
|
||||
] );
|
||||
}
|
||||
if ( !$content instanceof TemplateStylesContent ) {
|
||||
$title = $title->getPrefixedText();
|
||||
$titleText = $title->getPrefixedText();
|
||||
return self::formatTagError( $parser, [
|
||||
'templatestyles-bad-src',
|
||||
$title,
|
||||
wfEscapeWikiText( $title ),
|
||||
$titleText,
|
||||
wfEscapeWikiText( $titleText ),
|
||||
ContentHandler::getLocalizedName( $content->getModel() )
|
||||
] );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue