From: Platonides Date: Tue, 26 Oct 2010 13:54:47 +0000 (+0000) Subject: Follow up r75245. X-Git-Tag: 1.31.0-rc.0~34304 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=e3938d18a36421446d81ef1f4570fc4e5ebc802d;p=lhc%2Fweb%2Fwiklou.git Follow up r75245. Fix PHP Fatal error: Call to a member function ucfirst() on a non-object --- diff --git a/maintenance/tests/phpunit/includes/SampleTest.php b/maintenance/tests/phpunit/includes/SampleTest.php index 112e8b5a14..59857d958d 100644 --- a/maintenance/tests/phpunit/includes/SampleTest.php +++ b/maintenance/tests/phpunit/includes/SampleTest.php @@ -6,6 +6,9 @@ class TestSample extends PHPUnit_Framework_TestCase { * Anything that needs to happen before your tests should go here. */ function setUp() { + global $wgContLang; + /* For example, we need to set $wgContLang for creating a new Title */ + $wgContLang = Language::factory( 'en' ); } /**