From: Niklas Laxström Date: Sat, 20 Aug 2005 11:25:49 +0000 (+0000) Subject: Implement namespace redirect to keep old links working X-Git-Tag: 1.6.0~1874 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=ff92b2315e2b93754e3191e82438c21eedeabff3;p=lhc%2Fweb%2Fwiklou.git Implement namespace redirect to keep old links working --- diff --git a/languages/LanguageTa.php b/languages/LanguageTa.php index 5a0b56046d..fa33427962 100644 --- a/languages/LanguageTa.php +++ b/languages/LanguageTa.php @@ -787,6 +787,21 @@ $2 பட்டியல்   $3 $9 க்கான தேடலை மீ ); class LanguageTa extends LanguageUtf8 { + + function getNsIndex( $text ) { + $ns = $this->getNamespaces(); + + foreach ( $ns as $i => $n ) { + if ( strcasecmp( $n, $text ) == 0) + return $i; + } + + if ( strcasecmp( 'விக்கிபீடியா', $text) == 0) return NS_PROJECT; + if ( strcasecmp( 'விக்கிபீடியா_பேச்சு', $text) == 0) return NS_PROJECT_TALK; + + return false; + } + function getNamespaces() { global $wgNamespaceNamesTa; return $wgNamespaceNamesTa;