A few more wrong static things
authorSam Reed <reedy@users.mediawiki.org>
Sun, 25 Jul 2010 21:15:27 +0000 (21:15 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 25 Jul 2010 21:15:27 +0000 (21:15 +0000)
Remove some =& from LanguageKk_cyrl

includes/filerepo/FileRepo.php
includes/json/Services_JSON.php
includes/parser/Preprocessor_DOM.php
includes/parser/Preprocessor_Hash.php
languages/classes/LanguageKk_cyrl.php

index 6b85dd6..4d31a1a 100644 (file)
@@ -378,7 +378,7 @@ abstract class FileRepo {
         */
        function getDescriptionStylesheetUrl() {
                if ( $this->scriptDirUrl ) {
-                       return self::makeUrl( 'title=MediaWiki:Filepage.css&' .
+                       return $this->makeUrl( 'title=MediaWiki:Filepage.css&' .
                                wfArrayToCGI( Skin::getDynamicStylesheetQuery() ) );
                }
        }
index 453b01e..098455d 100644 (file)
@@ -431,7 +431,7 @@ class Services_JSON
                                        $this->indent--;
 
                                        foreach($properties as $property) {
-                                               if(Services_JSON::isError($property)) {
+                                               if($this->isError($property)) {
                                                        return $property;
                                                }
                                        }
@@ -445,7 +445,7 @@ class Services_JSON
                                $this->indent--;
 
                                foreach($elements as $element) {
-                                       if(Services_JSON::isError($element)) {
+                                       if($this->isError($element)) {
                                                return $element;
                                        }
                                }
@@ -462,7 +462,7 @@ class Services_JSON
                                $this->indent--;
 
                                foreach($properties as $property) {
-                                       if(Services_JSON::isError($property)) {
+                                       if($this->isError($property)) {
                                                return $property;
                                        }
                                }
@@ -489,7 +489,7 @@ class Services_JSON
        {
                $encoded_value = $this->encode2($value);
 
-               if(Services_JSON::isError($encoded_value)) {
+               if($this->isError($encoded_value)) {
                        return $encoded_value;
                }
 
index 60f975d..f0f056e 100644 (file)
@@ -1263,7 +1263,8 @@ class PPTemplateFrame_DOM extends PPFrame_DOM {
        var $numberedExpansionCache, $namedExpansionCache;
 
        function __construct( $preprocessor, $parent = false, $numberedArgs = array(), $namedArgs = array(), $title = false ) {
-               PPFrame_DOM::__construct( $preprocessor );
+               parent::__construct( $preprocessor );
+
                $this->parent = $parent;
                $this->numberedArgs = $numberedArgs;
                $this->namedArgs = $namedArgs;
@@ -1375,7 +1376,7 @@ class PPCustomFrame_DOM extends PPFrame_DOM {
        var $args;
 
        function __construct( $preprocessor, $args ) {
-               PPFrame_DOM::__construct( $preprocessor );
+               parent::__construct( $preprocessor );
                $this->args = $args;
        }
 
index 3fd06c1..9cb61e6 100644 (file)
@@ -1213,7 +1213,8 @@ class PPTemplateFrame_Hash extends PPFrame_Hash {
        var $numberedExpansionCache, $namedExpansionCache;
 
        function __construct( $preprocessor, $parent = false, $numberedArgs = array(), $namedArgs = array(), $title = false ) {
-               PPFrame_Hash::__construct( $preprocessor );
+               parent::__construct( $preprocessor );
+
                $this->parent = $parent;
                $this->numberedArgs = $numberedArgs;
                $this->namedArgs = $namedArgs;
@@ -1325,7 +1326,7 @@ class PPCustomFrame_Hash extends PPFrame_Hash {
        var $args;
 
        function __construct( $preprocessor, $args ) {
-               PPFrame_Hash::__construct( $preprocessor );
+               parent::__construct( $preprocessor );
                $this->args = $args;
        }
 
index 1d52c63..d57d58d 100644 (file)
@@ -477,9 +477,9 @@ class LanguageKk_cyrl extends Language {
                $secondPerson = array( "ز" ); // 1st plural, 2nd formal
                $thirdPerson = array( "ى", "ٸ" ); // 3rd
 
-               $lastLetter = self::lastLetter( $word, $allVowels );
-               $wordEnding =& $lastLetter[0];
-               $wordLastVowel =& $lastLetter[1];
+               $lastLetter = $this->lastLetter( $word, $allVowels );
+               $wordEnding = $lastLetter[0];
+               $wordLastVowel = $lastLetter[1];
 
                // Now convert the word
                switch ( $case ) {