From: Platonides Date: Sat, 28 Apr 2012 15:11:41 +0000 (+0200) Subject: Really use the global variable. Fixes bug in c4507 (4989dd) X-Git-Tag: 1.31.0-rc.0~23789 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=1ceb4b671f3704c0546731f35d984bdb1437a04c;p=lhc%2Fweb%2Fwiklou.git Really use the global variable. Fixes bug in c4507 (4989dd) Change-Id: I4733a3d8949d76044ba90e672395299f6623cecf --- diff --git a/tests/phpunit/includes/cache/GenderCacheTest.php b/tests/phpunit/includes/cache/GenderCacheTest.php index d62ee20436..8e2339eb58 100644 --- a/tests/phpunit/includes/cache/GenderCacheTest.php +++ b/tests/phpunit/includes/cache/GenderCacheTest.php @@ -7,6 +7,7 @@ class GenderCacheTest extends MediaWikiLangTestCase { function setUp() { + global $wgDefaultUserOptions; parent::setUp(); //ensure the correct default gender $wgDefaultUserOptions['gender'] = 'unknown';