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 (from parent 1:
118b79a
)
Force early binding of SpecialPage descendants.
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 29 Jun 2006 08:26:30 +0000
(08:26 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 29 Jun 2006 08:26:30 +0000
(08:26 +0000)
includes/AutoLoader.php
patch
|
blob
|
history
diff --git
a/includes/AutoLoader.php
b/includes/AutoLoader.php
index
d023303
..
8591015
100644
(file)
--- a/
includes/AutoLoader.php
+++ b/
includes/AutoLoader.php
@@
-230,6
+230,15
@@
function __autoload($className) {
function wfLoadAllExtensions() {
global $wgAutoloadClasses;
function wfLoadAllExtensions() {
global $wgAutoloadClasses;
+
+ # It is crucial that SpecialPage.php is included before any special page
+ # extensions are loaded. Otherwise the parent class will not be available
+ # when APC loads the early-bound extension class. Normally this is
+ # guaranteed by entering special pages via SpecialPage members such as
+ # executePath(), but here we have to take a more explicit measure.
+
+ require_once( 'SpecialPage.php' );
+
foreach( $wgAutoloadClasses as $class => $file ) {
if ( ! class_exists( $class ) ) {
require( $file );
foreach( $wgAutoloadClasses as $class => $file ) {
if ( ! class_exists( $class ) ) {
require( $file );