X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupPreferences.php;h=4e19b79d99ea1d3a2c970dd1206f16329672daeb;hb=6b82cb0ddf22395dd01a15df51b12bfe165dd76c;hp=c0a526b7ffe7013c4f291c78090aae1f0915f208;hpb=3158abd3517162205711488e079d06928848ec75;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php index c0a526b7ff..4e19b79d99 100644 --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -19,11 +19,11 @@ * * @file * @author TyA - * @see [[bugzilla:30976]] + * @see https://phabricator.wikimedia.org/T32976 * @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;