aboutsummaryrefslogtreecommitdiffstats
path: root/includes/SpecialPage.php
diff options
context:
space:
mode:
authornobody <nobody@localhost>2006-01-05 23:36:45 +0000
committernobody <nobody@localhost>2006-01-05 23:36:45 +0000
commit4ce70280face928c604c4300fd2ba6fdc78243da (patch)
tree3b2f616b592484fcd8bf9b70ea4a062cd5ac64fc /includes/SpecialPage.php
parent9018faf3a776fffd61bbb9a7516da6ae8bf55f55 (diff)
parentb2a8013a4893454f32dc13bd253e141d7fef2f35 (diff)
downloadmediawikicore-1.5.5.tar.gz
mediawikicore-1.5.5.zip
This commit was manufactured by cvs2svn to create tag 'REL1_5_5'.1.5.5
Diffstat (limited to 'includes/SpecialPage.php')
-rw-r--r--includes/SpecialPage.php18
1 files changed, 5 insertions, 13 deletions
diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php
index 869ccafe1af2..4fbd7b9f5b1d 100644
--- a/includes/SpecialPage.php
+++ b/includes/SpecialPage.php
@@ -17,11 +17,6 @@
/**
- *
- */
-global $wgSpecialPages, $wgUser;
-
-/**
* @access private
*/
$wgSpecialPages = array(
@@ -47,6 +42,7 @@ $wgSpecialPages = array(
'Unusedcategories' => new SpecialPage( 'Unusedcategories' ),
'Unusedimages' => new SpecialPage( 'Unusedimages' ),
'Wantedpages' => new SpecialPage( 'Wantedpages' ),
+ 'Mostlinked' => new SpecialPage( 'Mostlinked' ),
'Shortpages' => new SpecialPage( 'Shortpages' ),
'Longpages' => new SpecialPage( 'Longpages' ),
'Newpages' => new IncludableSpecialPage( 'Newpages' ),
@@ -75,21 +71,17 @@ $wgSpecialPages = array(
'Userrights' => new SpecialPage( 'Userrights', 'userrights' ),
);
-global $wgUseValidation ;
if ( $wgUseValidation )
$wgSpecialPages['Validate'] = new SpecialPage( 'Validate' );
-global $wgDisableCounters;
if( !$wgDisableCounters ) {
$wgSpecialPages['Popularpages'] = new SpecialPage( 'Popularpages' );
}
-global $wgDisableInternalSearch;
if( !$wgDisableInternalSearch ) {
$wgSpecialPages['Search'] = new UnlistedSpecialPage( 'Search' );
}
-global $wgEmailAuthentication;
if( $wgEmailAuthentication ) {
$wgSpecialPages['Confirmemail'] = new UnlistedSpecialPage( 'Confirmemail' );
}
@@ -165,7 +157,7 @@ class SpecialPage
* @static
* @param string $name
*/
- function &getPage( $name ) {
+ function getPage( $name ) {
global $wgSpecialPages;
if ( array_key_exists( $name, $wgSpecialPages ) ) {
return $wgSpecialPages[$name];
@@ -179,7 +171,7 @@ class SpecialPage
* @param string $name
* @return mixed Title object if the redirect exists, otherwise NULL
*/
- function &getRedirect( $name ) {
+ function getRedirect( $name ) {
global $wgUser;
switch ( $name ) {
case 'Mypage':
@@ -240,12 +232,12 @@ class SpecialPage
$par = $bits[1];
}
- $page =& SpecialPage::getPage( $name );
+ $page = SpecialPage::getPage( $name );
if ( is_null( $page ) ) {
if ( $including ) {
return false;
} else {
- $redir =& SpecialPage::getRedirect( $name );
+ $redir = SpecialPage::getRedirect( $name );
if ( isset( $redir ) ) {
if ( isset( $par ) )
$wgOut->redirect( $redir->getFullURL() . '/' . $par );