From: Platonides Date: Sat, 7 Jan 2012 22:42:05 +0000 (+0000) Subject: r102411 fixup. Close register globals vuln, and document X-Git-Tag: 1.31.0-rc.0~25446 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=a26f9bd70f9184f12188ab3f96454c91d0a7a486;p=lhc%2Fweb%2Fwiklou.git r102411 fixup. Close register globals vuln, and document why is there that require_once. --- diff --git a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php index 3debaf70d3..95d60e980c 100644 --- a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php +++ b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php @@ -7,8 +7,14 @@ * @author Antoine Musso * @group Database */ + +if ( !defined( 'MEDIAWIKI' ) ) { + die( 1 ); +} + global $IP; -require_once("$IP/includes/QueryPage.php"); +require_once "$IP/includes/QueryPage.php"; // Needed to populate $wgQueryPages + class QueryAllSpecialPagesTest extends MediaWikiTestCase { /** List query pages that can not be tested automatically */