'Userlogout' => new UnlistedSpecialPage( 'Userlogout' ),
'Preferences' => new SpecialPage( 'Preferences' ),
'Watchlist' => new SpecialPage( 'Watchlist' ),
-
+
'Recentchanges' => new IncludableSpecialPage( 'Recentchanges' ),
'Upload' => new SpecialPage( 'Upload' ),
'Imagelist' => new SpecialPage( 'Imagelist' ),
* Whether the special page can be included in an article
*/
var $mIncludable;
-
+
/**#@-*/
-
+
/**
* Add a page to the list of valid special pages
* $obj->execute() must send HTML to $wgOut then return
return NULL;
}
}
-
+
/**
* @static
* @param string $name
* The path may contain parameters, e.g. Special:Name/Params
* Extracts the special page name and call the execute method, passing the parameters
*
- * Returns a title object if the page is redirected, false if there was no such special
+ * Returns a title object if the page is redirected, false if there was no such special
* page, and true if it was successful.
*
* @param $title a title object
} else {
$redir =& SpecialPage::getRedirect( $name );
if ( isset( $redir ) ) {
- if ( isset( $par ) )
+ if ( isset( $par ) )
$wgOut->redirect( $redir->getFullURL() . '/' . $par );
else
$wgOut->redirect( $redir->getFullURL() );
$oldTitle = $wgTitle;
$oldOut = $wgOut;
$wgOut = new OutputPage;
-
+
$ret = SpecialPage::executePath( $title, true );
if ( $ret === true ) {
$ret = $wgOut->getHTML();
function isListed() { return $this->mListed; }
function getFile() { return $this->mFile; }
function including( $x = NULL ) { return wfSetVar( $this->mIncluding, $x ); }
- function includable( $x = NULL ) { return wfSetVar( $this->mIncludable, $x ); }
+ function includable( $x = NULL ) { return wfSetVar( $this->mIncludable, $x ); }
/**
* Checks if the given user (identified by an object) can execute this