X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2Frebuildmessages.php;h=3b405563010cbc5c83d70b0b5d19ea5b7af9ad8d;hb=630a39ce6b686872db84c2c2d022bb6c26bf23a8;hp=a70e591f9edcf6cb83712f1ed69a7dc354c07172;hpb=f6cbdfb5e2c3ffc05858612e219a24e22bdbc72e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildmessages.php b/maintenance/rebuildmessages.php index a70e591f9e..3b40556301 100644 --- a/maintenance/rebuildmessages.php +++ b/maintenance/rebuildmessages.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that purges all languages from the message cache. @@ -31,7 +31,7 @@ require_once( __DIR__ . '/Maintenance.php' ); class RebuildMessages extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Purge all language messages from the cache"; + $this->addDescription( 'Purge all language messages from the cache' ); } public function execute() { @@ -45,12 +45,13 @@ class RebuildMessages extends Maintenance { foreach ( $databases as $db ) { $this->output( "Deleting message cache for {$db}... " ); $messageMemc->delete( "{$db}:messages" ); - if ( $wgEnableSidebarCache ) + if ( $wgEnableSidebarCache ) { $messageMemc->delete( "{$db}:sidebar" ); + } $this->output( "Deleted\n" ); } } } $maintClass = "RebuildMessages"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;