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:
93f87e7
)
Declare 2 variables to be global to avoid reference error
author
rillke
<rainerrillke@hotmail.com>
Tue, 15 Jul 2014 07:59:11 +0000
(09:59 +0200)
committer
rillke
<rainerrillke@hotmail.com>
Tue, 15 Jul 2014 07:59:11 +0000
(09:59 +0200)
This fixes a bug introduced in Ic7fc3bd8362 resulting in the updater
aborting when attempting to update the constraints with a fatal error
due to missing $wgDBname, $wgDBmwschema in the current scope.
Change-Id: I7bbaef2175f81ab843ad09fe92c10dba1257a184
includes/installer/MssqlUpdater.php
patch
|
blob
|
history
diff --git
a/includes/installer/MssqlUpdater.php
b/includes/installer/MssqlUpdater.php
index
d590a70
..
4d86d11
100644
(file)
--- a/
includes/installer/MssqlUpdater.php
+++ b/
includes/installer/MssqlUpdater.php
@@
-65,6
+65,8
@@
class MssqlUpdater extends DatabaseUpdater {
* @return bool False if patch is skipped.
*/
protected function updateConstraints( $constraintType, $table, $field ) {
+ global $wgDBname, $wgDBmwschema;
+
if ( !$this->doTable( $table ) ) {
return true;
}