X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FcleanupPreferences.php;h=c0a526b7ffe7013c4f291c78090aae1f0915f208;hb=cf0872c783946242698bfaf9bd134d503fc393fc;hp=3539689a3e2529c6c38fecf416900664ad26f42f;hpb=023b1dafd3a961bef261925e14e26554dd4e6c9d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php index 3539689a3e..c0a526b7ff 100644 --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -35,7 +35,7 @@ class CleanupPreferences extends Maintenance { global $wgHiddenPrefs; $dbw = wfGetDB( DB_MASTER ); - $dbw->begin(); + $dbw->begin( __METHOD__ ); foreach( $wgHiddenPrefs as $item ) { $dbw->delete( 'user_properties', @@ -43,7 +43,7 @@ class CleanupPreferences extends Maintenance { __METHOD__ ); }; - $dbw->commit(); + $dbw->commit( __METHOD__ ); $this->output( "Finished!\n" ); } }