From: Sam Reed Date: Sun, 25 Jul 2010 20:44:40 +0000 (+0000) Subject: Make getRandomString static as per comment X-Git-Tag: 1.31.0-rc.0~35934 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=a02f41819617af74ca4dd254642dd0c84d4595f0;p=lhc%2Fweb%2Fwiklou.git Make getRandomString static as per comment Fix usage in top of Parser (changed by me earlier) --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index ae1e3f18f7..b1e8b4fa3d 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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 ) ); }