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 "Add @var to Pager classes"
[lhc/web/wiklou.git]
/
maintenance
/
doMaintenance.php
diff --git
a/maintenance/doMaintenance.php
b/maintenance/doMaintenance.php
index
f3fb32c
..
1f1a4c7
100644
(file)
--- a/
maintenance/doMaintenance.php
+++ b/
maintenance/doMaintenance.php
@@
-91,7
+91,7
@@
$maintenance->checkRequiredExtensions();
$maintenance->setAgentAndTriggers();
// Do the work
$maintenance->setAgentAndTriggers();
// Do the work
-$maintenance->execute();
+$
success = $
maintenance->execute();
// Potentially debug globals
$maintenance->globals();
// Potentially debug globals
$maintenance->globals();
@@
-111,3
+111,8
@@
if ( isset( $lbFactory ) ) {
$lbFactory->commitMasterChanges( 'doMaintenance' );
$lbFactory->shutdown( $lbFactory::SHUTDOWN_NO_CHRONPROT );
}
$lbFactory->commitMasterChanges( 'doMaintenance' );
$lbFactory->shutdown( $lbFactory::SHUTDOWN_NO_CHRONPROT );
}
+
+// Exit with an error status if execute() returned false
+if ( $success === false ) {
+ exit( 1 );
+}