From: Antoine Musso Date: Wed, 31 Aug 2005 20:19:01 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: 1.6.0~1743 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=d47eca0684a600ca6e5a8cec666748457f67e9b4;p=lhc%2Fweb%2Fwiklou.git *** empty log message *** --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 43319bdb2d..5bc4e5103d 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -384,10 +384,11 @@ class SpecialPage $this->setHeaders(); if ( $this->userCanExecute( $wgUser ) ) { - if ( $this->mFile ) { + $func = $this->mFunction; + // only load file if the function does not exist + if(!function_exists($func) and $this->mFile) { require_once( $this->mFile ); } - $func = $this->mFunction; $func( $par, $this ); } else { $this->displayRestrictionError();