From: Platonides Date: Wed, 5 Jan 2011 23:56:10 +0000 (+0000) Subject: Unused global X-Git-Tag: 1.31.0-rc.0~32783 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=1235146be6b087f1f1357b3c0baba256b5d44a25;p=lhc%2Fweb%2Fwiklou.git Unused global --- diff --git a/tests/phpunit/includes/api/ApiQueryTest.php b/tests/phpunit/includes/api/ApiQueryTest.php index dbb64bdcbf..d6da9503f6 100644 --- a/tests/phpunit/includes/api/ApiQueryTest.php +++ b/tests/phpunit/includes/api/ApiQueryTest.php @@ -43,10 +43,6 @@ class ApiQueryTest extends ApiTestSetup { } function testTitlesAreRejectedIfInvalid() { - - global $wgSitename; - - $title = false; while( !$title || Title::newFromText( $title )->exists() ) { $title = md5( mt_rand( 0, 10000 ) + rand( 0, 999000 ) );