unused globals as per #3692
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 1 May 2006 11:03:02 +0000 (11:03 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 1 May 2006 11:03:02 +0000 (11:03 +0000)
18 files changed:
languages/LanguageCs.php
languages/LanguageCsb.php
languages/LanguageCv.php
languages/LanguageEo.php
languages/LanguageEt.php
languages/LanguageFr.php
languages/LanguageFy.php
languages/LanguageIs.php
languages/LanguageJa.php
languages/LanguageKu.php
languages/LanguageNn.php
languages/LanguageOs.php
languages/LanguageRu.php
languages/LanguageSu.php
languages/LanguageUdm.php
languages/LanguageVi.php
languages/LanguageWa.php
languages/LanguageXal.php

index 9d94d43..169a65b 100644 (file)
@@ -172,7 +172,6 @@ class LanguageCs extends LanguageUtf8 {
        }
 
        function checkTitleEncoding( $s ) {
-               global $wgInputEncoding;
 
                # Check for non-UTF-8 URLs; assume they are WinLatin2
                $ishigh = preg_match( '/[\x80-\xff]/', $s);
index a84499b..890394f 100644 (file)
@@ -37,7 +37,7 @@ class LanguageCsb extends LanguageUtf8 {
        }
 
        function getMessage( $key ) {
-               global $wgAllMessagesCsb, $wgAllMessagesEn;
+               global $wgAllMessagesCsb;
                if( isset( $wgAllMessagesCsb[$key] ) ) {
                        return $wgAllMessagesCsb[$key];
                } else {
index 26ca7ec..88ca347 100644 (file)
@@ -55,8 +55,6 @@ class LanguageCv extends LanguageRu {
 
        function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
 
-               global $wgUser;
-
                if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
 
                $datePreference = $this->dateFormat( $format );
index 845915b..b5bdf86 100644 (file)
@@ -143,8 +143,6 @@ class LanguageEo extends LanguageUtf8 {
        }
 
        function checkTitleEncoding( $s ) {
-               global $wgInputEncoding;
-
                # Check for X-system backwards-compatibility URLs
                $ishigh = preg_match( '/[\x80-\xff]/', $s);
                $isutf = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
index 4e2e499..5ae62ab 100644 (file)
@@ -182,7 +182,7 @@ class LanguageEt extends LanguageUtf8 {
         * @return string
         */
        function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
-               global $wgAmericanDates, $wgUser;
+               global $wgAmericanDates;
 
                if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
 
index eb61929..33f78da 100644 (file)
@@ -97,7 +97,7 @@ class LanguageFr extends LanguageUtf8 {
        }
 
        function getMessage( $key ) {
-               global $wgAllMessagesFr, $wgAllMessagesEn;
+               global $wgAllMessagesFr;
                if( isset( $wgAllMessagesFr[$key] ) ) {
                        return $wgAllMessagesFr[$key];
                } else {
index 08d90ea..aec068f 100644 (file)
@@ -108,7 +108,6 @@ class LanguageFy extends LanguageUtf8 {
         * @return string
         */
        function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
-               global $wgUser;
 
                if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
 
index 739ddb9..3c50440 100644 (file)
@@ -103,7 +103,6 @@ class LanguageIs extends LanguageUtf8 {
        }
 
        function date( $ts, $adj = false, $format = true) {
-               global $wgUser;
                if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
                $format = $this->dateFormat($format);
 
index e5ad1b9..5071b45 100644 (file)
@@ -128,7 +128,6 @@ class LanguageJa extends LanguageUtf8 {
        function stripForSearch( $string ) {
                # MySQL fulltext index doesn't grok utf-8, so we
                # need to fold cases and convert to hex
-               global $wikiLowerChars;
                $s = $string;
 
                # Strip known punctuation ?
index bd39a36..4eed9fb 100644 (file)
@@ -40,7 +40,7 @@ class LanguageKu extends LanguageUtf8 {
        }
 
        function getMessage( $key ) {
-               global $wgAllMessagesKu, $wgAllMessagesEn;
+               global $wgAllMessagesKu;
                if( isset( $wgAllMessagesKu[$key] ) ) {
                        return $wgAllMessagesKu[$key];
                } else {
index 174aa74..e21164b 100644 (file)
@@ -154,7 +154,6 @@ class LanguageNn extends LanguageUtf8 {
        }
 
        function time($ts, $adj = false, $format = true) {
-               global $wgUser;
                if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
 
                $format = $this->dateFormat($format);
index 71331cc..ff09668 100644 (file)
@@ -50,6 +50,7 @@ if (!$wgCachedMessageArrays) {
 
 class LanguageOs extends LanguageRu {
        function LanguageOs() {
+               # FIXME: Are the globals really used ?
                global $wgNamespaceNamesOs, $wgMetaNamespace;
                LanguageUtf8::LanguageUtf8();
        }
index a094804..5ffad05 100644 (file)
@@ -166,7 +166,7 @@ class LanguageRu extends LanguageUtf8 {
                # matter if they are wrong sometimes. Just add a special case for your site name if necessary.
 
                #join and array_slice instead mb_substr
-
+               $ar = array();
                preg_match_all( '/./us', $word, $ar );
                if (!preg_match("/[a-zA-Z_]/us", $word))
                        switch ( $case ) {
index 1774efc..515863d 100644 (file)
@@ -42,7 +42,7 @@ class LanguageSu extends LanguageUtf8 {
        }
 
        function getMessage( $key ) {
-               global $wgAllMessagesSu, $wgAllMessagesEn;
+               global $wgAllMessagesSu;
                if( isset( $wgAllMessagesSu[$key] ) ) {
                        return $wgAllMessagesSu[$key];
                } else {
index 53a36cd..142acd9 100644 (file)
@@ -36,6 +36,7 @@ if (!$wgCachedMessageArrays) {
 
 class LanguageUdm extends LanguageRu {
        function LanguageUdm() {
+               # FIXME are the globals really used?
                global $wgNamespaceNamesUdm, $wgMetaNamespace;
                LanguageUtf8::LanguageUtf8();
        }
index c1c71e2..e619013 100644 (file)
@@ -127,7 +127,7 @@ class LanguageVi extends LanguageUtf8 {
        }
 
        function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
-               global $wgAmericanDates, $wgUser;
+               global $wgAmericanDates;
 
                if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
 
@@ -193,7 +193,7 @@ class LanguageVi extends LanguageUtf8 {
        }
 
        function getMessage( $key ) {
-               global $wgAllMessagesVi, $wgAllMessagesEn;
+               global $wgAllMessagesVi;
                if( isset( $wgAllMessagesVi[$key] ) ) {
                        return $wgAllMessagesVi[$key];
                } else {
index 87ab8e4..a1727a8 100644 (file)
@@ -71,7 +71,6 @@ class LanguageWa extends LanguageUtf8 {
        ### "<day> d' <monthname>" for months starting with a vowel
        ###
        function date( $ts, $adj = false ) {
-               global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
 
                if ( $adj ) { $ts = $this->userAdjust( $ts ); }
 
index cd28586..82f45c3 100644 (file)
@@ -34,6 +34,7 @@ if (!$wgCachedMessageArrays) {
 
 class LanguageXal extends LanguageUtf8 {
        function LanguageXal() {
+               # FIXME are the globas really used?
                global $wgNamespaceNamesXal, $wgMetaNamespace;
                LanguageUtf8::LanguageUtf8();
        }