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:
20acda5
)
New installer: fixed fatal exception due to attempted DB access from User::loadOptions()
author
Max Semenik
<maxsem@users.mediawiki.org>
Sat, 3 Jul 2010 06:06:02 +0000
(06:06 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Sat, 3 Jul 2010 06:06:02 +0000
(06:06 +0000)
includes/installer/Installer.php
patch
|
blob
|
history
diff --git
a/includes/installer/Installer.php
b/includes/installer/Installer.php
index
0380442
..
6af820b
100644
(file)
--- a/
includes/installer/Installer.php
+++ b/
includes/installer/Installer.php
@@
-224,6
+224,10
@@
abstract class Installer {
$wgExtensionMessagesFiles['MediawikiInstaller'] =
'./includes/installer/Installer.i18n.php';
+ global $wgUser;
+ $wgUser = User::newFromId( 0 );
+ // Having a user with id = 0 safeguards us from DB access via User::loadOptions()
+
// Set our custom <doclink> hook
global $wgHooks;
$wgHooks['ParserFirstCallInit'][] = array( $this, 'registerDocLink' );