Page MenuHomePhabricator

Special:Whatlinkshere spews deprecation warning
Closed, ResolvedPublic

Description

Notice: Use of Xml::namespaceSelector was deprecated in MediaWiki 1.19. [Called from SpecialWhatLinksHere::whatlinkshereForm in /var/www/trunk/includes/specials/SpecialWhatlinkshere.php at line 417] in /var/www/trunk/includes/GlobalFunctions.php on line 1084


Version: unspecified
Severity: normal

Details

Reference
bz35206

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:18 AM
bzimport set Reference to bz35206.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

Notice: Use of Xml::namespaceSelector was deprecated in MediaWiki 1.19. [Called
from SpecialWhatLinksHere::whatlinkshereForm in
/var/www/trunk/includes/specials/SpecialWhatlinkshere.php at line 417] in
/var/www/trunk/includes/GlobalFunctions.php on line 1084

Is the fix to copy and use the below instead? :/

Html::namespaceSelector( array(

			'selected' => $selected,
			'all'      => $all,
			'label'    => $label,
		), array(
			'name'  => $element_name,
			'id'    => 'namespace',
			'class' => 'namespaceselector',
		) );

There's 11 usages of Xml::namespaceSelector