r108331 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r108330
|
r108331
|
r108332
>
Date:
22:42, 7 January 2012
Author:
platonides
Status:
ok (
Comments
)
Tags:
Comment:
r102411
fixup. Close register globals vuln, and document
why is there that require_once.
Modified paths:
/trunk/phase3/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
—
—
@@ -7,8 +7,14 @@
8
8
* @author Antoine Musso
9
9
* @group Database
10
10
*/
11
+
12
+if ( !defined( 'MEDIAWIKI' ) ) {
13
+ die( 1 );
14
+}
15
+
11
16
global $IP;
12
-require_once("$IP/includes/QueryPage.php");
17
+require_once "$IP/includes/QueryPage.php"; // Needed to populate $wgQueryPages
18
+
13
19
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
14
20
15
21
/** List query pages that can not be tested automatically */
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r102411
test SQL for our QueryPages objects...
hashar
16:22, 8 November 2011
Comments
#
Comment by
Hashar
(
talk
|
contribs
)
11:55, 8 January 2012
Thanks
Status & tagging log
11:55, 8 January 2012
Hashar
(
talk
|
contribs
)
changed the
status
of r108331
[
removed:
new
added:
ok]