*** empty log message ***
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 31 Aug 2005 20:19:01 +0000 (20:19 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 31 Aug 2005 20:19:01 +0000 (20:19 +0000)
includes/SpecialPage.php

index 43319bd..5bc4e51 100644 (file)
@@ -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();