mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-12-01 02:16:11 +00:00
Fix double "MediaWiki:MediaWiki:" namespace on Special:Gadgets
Bug: T121047 Change-Id: Ic6d0f3d3aa3c6288c1fd7f08517d53b582bdf76f
This commit is contained in:
parent
c51cba6a7c
commit
349f963180
|
@ -114,7 +114,7 @@ class SpecialGadgets extends SpecialPage {
|
||||||
|
|
||||||
$lnk = array();
|
$lnk = array();
|
||||||
foreach ( $gadget->getScriptsAndStyles() as $codePage ) {
|
foreach ( $gadget->getScriptsAndStyles() as $codePage ) {
|
||||||
$t = Title::makeTitleSafe( NS_MEDIAWIKI, $codePage );
|
$t = Title::newFromText( $codePage );
|
||||||
|
|
||||||
if ( !$t ) {
|
if ( !$t ) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue