X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FcleanupPreferences.php;h=06ae17fbcb3fb99881354f89389166bb0eff1baf;hb=8c34c8ed5e3f581b0d507aa7a4a90ac776aa9a87;hp=c0a526b7ffe7013c4f291c78090aae1f0915f208;hpb=3158abd3517162205711488e079d06928848ec75;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php index c0a526b7ff..06ae17fbcb 100644 --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -23,7 +23,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that removes hidden preferences from the database. @@ -36,7 +36,7 @@ class CleanupPreferences extends Maintenance { $dbw = wfGetDB( DB_MASTER ); $dbw->begin( __METHOD__ ); - foreach( $wgHiddenPrefs as $item ) { + foreach ( $wgHiddenPrefs as $item ) { $dbw->delete( 'user_properties', array( 'up_property' => $item ), @@ -49,4 +49,4 @@ class CleanupPreferences extends Maintenance { } $maintClass = 'CleanupPreferences'; // Tells it to run the class -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;