dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eccee3
)
*** empty log message ***
author
Antoine Musso
<hashar@users.mediawiki.org>
Wed, 31 Aug 2005 20:19:01 +0000
(20:19 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Wed, 31 Aug 2005 20:19:01 +0000
(20:19 +0000)
includes/SpecialPage.php
patch
|
blob
|
history
diff --git
a/includes/SpecialPage.php
b/includes/SpecialPage.php
index
43319bd
..
5bc4e51
100644
(file)
--- 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();