diff options
Diffstat (limited to 'maintenance/rebuildmessages.php')
-rw-r--r-- | maintenance/rebuildmessages.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/maintenance/rebuildmessages.php b/maintenance/rebuildmessages.php index a70e591f..f223f1ab 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. @@ -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; |