3 * Description: This script takes $wgHiddenPrefs and removes their preference from the DB. [[bugzilla:30976]]
4 * @author TyA <tya.wiki@gmail.com>
8 require_once( dirname( __FILE__
) . '/Maintenance.php' );
10 class CleanupPreferences
extends Maintenance
{
11 public function execute() {
12 global $wgHiddenPrefs;
14 $dbw = wfGetDB( DB_MASTER
);
16 foreach( $wgHiddenPrefs as $item ) {
19 array( 'up_property' => $item ),
24 $this->output( "Finished!\n" );
28 $maintClass = 'CleanupPreferences'; // Tells it to run the class
29 require_once( RUN_MAINTENANCE_IF_MAIN
);