Index: trunk/phase3/includes/Xml.php |
— | — | @@ -99,7 +99,7 @@ |
100 | 100 | * @param bool $hidden Include hidden namespaces? [WTF? --RC] |
101 | 101 | * @return string |
102 | 102 | */ |
103 | | - public static function namespaceSelector( $selected = '', $all = null, $hidden = false ) { |
| 103 | + public static function namespaceSelector( $selected = '', $all = null, $hidden = false, $element_name = 'namespace' ) { |
104 | 104 | global $wgContLang; |
105 | 105 | $namespaces = $wgContLang->getFormattedNamespaces(); |
106 | 106 | $options = array(); |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | $options[] = self::option( $name, $index, $index === $selected ); |
116 | 116 | } |
117 | 117 | |
118 | | - return Xml::openElement( 'select', array( 'id' => 'namespace', 'name' => 'namespace', |
| 118 | + return Xml::openElement( 'select', array( 'id' => 'namespace', 'name' => $element_name, |
119 | 119 | 'class' => 'namespaceselector' ) ) |
120 | 120 | . "\n" |
121 | 121 | . implode( "\n", $options ) |