$wgExternalLinkTarget
* api.php now sends "Retry-After" and "X-Database-Lag" HTTP headers if the maxlag
check fails, just like index.php does
-* Classes derived from SpecialPage can now specify a run() method, which will
- be executed after all magic performed by SpecialPage::execute()
=== Bug fixes in 1.14 ===
if ( $this->userCanExecute( $wgUser ) ) {
$func = $this->mFunction;
// only load file if the function does not exist
- if ( !is_callable( $func ) ) {
- // Check whether a run method has been defined
- if ( is_callable( array( $this, 'run' ) ) )
- $func = array( $this, 'run' );
- // Else load from file if it has been specified
- elseif ( $this->mFile )
- require_once( $this->mFile );
+ if(!is_callable($func) and $this->mFile) {
+ require_once( $this->mFile );
}
# FIXME: these hooks are broken for extensions and anything else that subclasses SpecialPage.
if ( wfRunHooks( 'SpecialPageExecuteBeforeHeader', array( &$this, &$par, &$func ) ) )
}
}
-
function outputHeader() {
global $wgOut, $wgContLang;