X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupPreferences.php;h=c0a526b7ffe7013c4f291c78090aae1f0915f208;hb=9b564e9bbefbd5be8c49f8891c2393ca9a315fbb;hp=706f87fb927ed07dcd6dc5b77df84d7066ef6c24;hpb=558480e3ed462cd20ddc8b5fc8245bfd7b831772;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php old mode 100755 new mode 100644 index 706f87fb92..c0a526b7ff --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -1,52 +1,52 @@ - - * @see [[bugzilla:30976]] - * @ingroup Maintenance - */ - -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); - -/** - * Maintenance script that removes hidden preferences from the database. - * - * @ingroup Maintenance - */ -class CleanupPreferences extends Maintenance { - public function execute() { - global $wgHiddenPrefs; - - $dbw = wfGetDB( DB_MASTER ); - $dbw->begin(); - foreach( $wgHiddenPrefs as $item ) { - $dbw->delete( - 'user_properties', - array( 'up_property' => $item ), - __METHOD__ - ); - }; - $dbw->commit(); - $this->output( "Finished!\n" ); - } -} - -$maintClass = 'CleanupPreferences'; // Tells it to run the class -require_once( RUN_MAINTENANCE_IF_MAIN ); + + * @see [[bugzilla:30976]] + * @ingroup Maintenance + */ + +require_once( __DIR__ . '/Maintenance.php' ); + +/** + * Maintenance script that removes hidden preferences from the database. + * + * @ingroup Maintenance + */ +class CleanupPreferences extends Maintenance { + public function execute() { + global $wgHiddenPrefs; + + $dbw = wfGetDB( DB_MASTER ); + $dbw->begin( __METHOD__ ); + foreach( $wgHiddenPrefs as $item ) { + $dbw->delete( + 'user_properties', + array( 'up_property' => $item ), + __METHOD__ + ); + }; + $dbw->commit( __METHOD__ ); + $this->output( "Finished!\n" ); + } +} + +$maintClass = 'CleanupPreferences'; // Tells it to run the class +require_once( RUN_MAINTENANCE_IF_MAIN );