Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -212,7 +212,7 @@ |
213 | 213 | */ |
214 | 214 | # $this->mUniqPrefix = "\x07UNIQ" . Parser::getRandomString(); |
215 | 215 | # Changed to \x7f to allow XML double-parsing -- TS |
216 | | - $this->mUniqPrefix = "\x7fUNIQ" . $this->getRandomString(); |
| 216 | + $this->mUniqPrefix = "\x7fUNIQ" . $self::getRandomString(); |
217 | 217 | |
218 | 218 | |
219 | 219 | # Clear these on every parse, bug 4549 |
— | — | @@ -491,7 +491,7 @@ |
492 | 492 | * @private |
493 | 493 | * @static |
494 | 494 | */ |
495 | | - function getRandomString() { |
| 495 | + static function getRandomString() { |
496 | 496 | return dechex( mt_rand( 0, 0x7fffffff ) ) . dechex( mt_rand( 0, 0x7fffffff ) ); |
497 | 497 | } |
498 | 498 | |