dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "It should not be possible for a RequestContext's WikiPage and Title to be...
[lhc/web/wiklou.git]
/
includes
/
SpecialPageFactory.php
diff --git
a/includes/SpecialPageFactory.php
b/includes/SpecialPageFactory.php
index
95f75a8
..
8ed5264
100644
(file)
--- a/
includes/SpecialPageFactory.php
+++ b/
includes/SpecialPageFactory.php
@@
-155,7
+155,6
@@
class SpecialPageFactory {
'Blankpage' => 'SpecialBlankpage',
'Blockme' => 'SpecialBlockme',
'Emailuser' => 'SpecialEmailUser',
'Blankpage' => 'SpecialBlankpage',
'Blockme' => 'SpecialBlockme',
'Emailuser' => 'SpecialEmailUser',
- 'JavaScriptTest' => 'SpecialJavaScriptTest',
'Movepage' => 'MovePageForm',
'Mycontributions' => 'SpecialMycontributions',
'Mypage' => 'SpecialMypage',
'Movepage' => 'MovePageForm',
'Mycontributions' => 'SpecialMycontributions',
'Mypage' => 'SpecialMypage',
@@
-178,7
+177,7
@@
class SpecialPageFactory {
static function getList() {
global $wgSpecialPages;
global $wgDisableCounters, $wgDisableInternalSearch, $wgEmailAuthentication;
static function getList() {
global $wgSpecialPages;
global $wgDisableCounters, $wgDisableInternalSearch, $wgEmailAuthentication;
- global $wgEnableEmail;
+ global $wgEnableEmail
, $wgEnableJavaScriptTest
;
if ( !is_object( self::$mList ) ) {
wfProfileIn( __METHOD__ );
if ( !is_object( self::$mList ) ) {
wfProfileIn( __METHOD__ );
@@
-200,6
+199,10
@@
class SpecialPageFactory {
self::$mList['ChangeEmail'] = 'SpecialChangeEmail';
}
self::$mList['ChangeEmail'] = 'SpecialChangeEmail';
}
+ if( $wgEnableJavaScriptTest ) {
+ self::$mList['JavaScriptTest'] = 'SpecialJavaScriptTest';
+ }
+
// Add extension special pages
self::$mList = array_merge( self::$mList, $wgSpecialPages );
// Add extension special pages
self::$mList = array_merge( self::$mList, $wgSpecialPages );