Ævar Arnfjörð Bjarmason wrote:
Log Message:
* Removed getNsIndex(), no longer needed
I just took a quick look so maybe I missed it, but what did you replace
it with to provide namespace aliasing? Several of the language files
define aliases for old names of namespaces and/or alternate
spelling/accenting.
For example:
Index: LanguageFr.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/languages/LanguageFr.php,v
retrieving revision 1.116
retrieving revision 1.117
diff -C2 -d -r1.116 -r1.117
*** LanguageFr.php 18 Jun 2005 04:11:29 -0000 1.116
--- LanguageFr.php 20 Jun 2005 12:34:18 -0000 1.117
***************
*** 1296,1313 ****
}
-
- function getNsIndex( $text ) {
- global $wgNamespaceNamesFr, $wgSitename;
-
- foreach ( $wgNamespaceNamesFr as $i => $n ) {
- if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
- }
- if( $wgSitename == "Wikipédia" ) {
- if( 0 == strcasecmp( "Wikipedia", $text ) ) return 4;
- if( 0 == strcasecmp( "Discussion_Wikipedia", $text ) ) return 5;
- }
- return false;
- }
-
function getQuickbarSettings() {
global $wgQuickbarSettingsFr;
--- 1296,1299 ----
-- brion vibber (brion @
pobox.com)