dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "foreign-resources: Add moment to our list of resources"
[lhc/web/wiklou.git]
/
maintenance
/
Maintenance.php
diff --git
a/maintenance/Maintenance.php
b/maintenance/Maintenance.php
index
e76426d
..
f3c2e12
100644
(file)
--- a/
maintenance/Maintenance.php
+++ b/
maintenance/Maintenance.php
@@
-1326,7
+1326,6
@@
abstract class Maintenance {
$this->output( "done.\n" );
}
$this->output( "done.\n" );
}
- # Done
$this->commitTransaction( $dbw, __METHOD__ );
}
$this->commitTransaction( $dbw, __METHOD__ );
}
@@
-1349,11
+1348,10
@@
abstract class Maintenance {
* @return IMaintainableDatabase
*/
protected function getDB( $db, $groups = [], $wiki = false ) {
* @return IMaintainableDatabase
*/
protected function getDB( $db, $groups = [], $wiki = false ) {
- if (
is_null( $this->mDb )
) {
+ if (
$this->mDb === null
) {
return wfGetDB( $db, $groups, $wiki );
return wfGetDB( $db, $groups, $wiki );
- } else {
- return $this->mDb;
}
}
+ return $this->mDb;
}
/**
}
/**