From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- maintenance/cleanupPreferences.php | 104 ++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'maintenance/cleanupPreferences.php') diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php index f37af775..c0a526b7 100644 --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -1,52 +1,52 @@ - - * @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(); - 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 ); -- cgit v1.2.3-54-g00ecf