Make getRandomString static as per comment
authorSam Reed <reedy@users.mediawiki.org>
Sun, 25 Jul 2010 20:44:40 +0000 (20:44 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 25 Jul 2010 20:44:40 +0000 (20:44 +0000)
Fix usage in top of Parser (changed by me earlier)

includes/parser/Parser.php

index ae1e3f1..b1e8b4f 100644 (file)
@@ -212,7 +212,7 @@ class Parser {
                 */
                # $this->mUniqPrefix = "\x07UNIQ" . Parser::getRandomString();
                # Changed to \x7f to allow XML double-parsing -- TS
-               $this->mUniqPrefix = "\x7fUNIQ" . $this->getRandomString();
+               $this->mUniqPrefix = "\x7fUNIQ" . $self::getRandomString();
 
 
                # Clear these on every parse, bug 4549
@@ -491,7 +491,7 @@ class Parser {
         * @private
         * @static
         */
-       function getRandomString() {
+       static function getRandomString() {
                return dechex( mt_rand( 0, 0x7fffffff ) ) . dechex( mt_rand( 0, 0x7fffffff ) );
        }