From d47eca0684a600ca6e5a8cec666748457f67e9b4 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 31 Aug 2005 20:19:01 +0000 Subject: [PATCH] *** empty log message *** --- includes/SpecialPage.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.20.1