r10656 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10655‎ | r10656 | r10657 >
Date:11:25, 20 August 2005
Author:nikerabbit
Status:old
Tags:
Comment:
Implement namespace redirect to keep old links working
Modified paths:
  • /trunk/phase3/languages/LanguageTa.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageTa.php
@@ -787,6 +787,21 @@
788788 );
789789
790790 class LanguageTa extends LanguageUtf8 {
 791+
 792+ function getNsIndex( $text ) {
 793+ $ns = $this->getNamespaces();
 794+
 795+ foreach ( $ns as $i => $n ) {
 796+ if ( strcasecmp( $n, $text ) == 0)
 797+ return $i;
 798+ }
 799+
 800+ if ( strcasecmp( 'விக்கிபீடியா', $text) == 0) return NS_PROJECT;
 801+ if ( strcasecmp( 'விக்கிபீடியா_பேச்சு', $text) == 0) return NS_PROJECT_TALK;
 802+
 803+ return false;
 804+ }
 805+
791806 function getNamespaces() {
792807 global $wgNamespaceNamesTa;
793808 return $wgNamespaceNamesTa;

Status & tagging log