X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdoMaintenance.php;h=4b9ad9c22d5adf31b41703e1d162358cac624be9;hb=54887c126c1e37fd9b71805e1c3992be589e0676;hp=c93a9713946c4e79982818f50159c4681c8fc1e0;hpb=8cddc9269b2dc8decf42148a4405750e27f766ae;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index c93a971394..4b9ad9c22d 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -92,29 +92,26 @@ if ( $maintenance->getDbType() === Maintenance::DB_NONE ) { } } -$maintenance->setConfig( ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) ); $maintenance->finalSetup(); // Some last includes require_once "$IP/includes/Setup.php"; +// Initialize main config instance +$maintenance->setConfig( ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) ); + // Do the work -try { - $maintenance->execute(); +$maintenance->execute(); - // Potentially debug globals - $maintenance->globals(); +// Potentially debug globals +$maintenance->globals(); - // Perform deferred updates. - DeferredUpdates::doUpdates( 'commit' ); +// Perform deferred updates. +DeferredUpdates::doUpdates( 'commit' ); - // log profiling info - wfLogProfilingData(); +// log profiling info +wfLogProfilingData(); - // Commit and close up! - $factory = wfGetLBFactory(); - $factory->commitMasterChanges(); - $factory->shutdown(); -} catch ( Exception $mwe ) { - echo $mwe->getText(); - exit( 1 ); -} +// Commit and close up! +$factory = wfGetLBFactory(); +$factory->commitMasterChanges(); +$factory->shutdown();