From: MarkAHershberger Date: Mon, 12 Nov 2012 14:23:51 +0000 (-0500) Subject: Bug 42039 - Fix some file-related issues in the distribution X-Git-Tag: 1.31.0-rc.0~21628^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=cca318981dfeff538ecb65ff460a590693c5a01a;p=lhc%2Fweb%2Fwiklou.git Bug 42039 - Fix some file-related issues in the distribution Minor issues. Tested the removal of maintenance/postgres/archives/patch-ipb_address_unique.sql in a new installation but haven't tested it on an upgrade. Change-Id: I58aa11c5acab5de427cbc000e6786a208fc6b26f --- diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php old mode 100755 new mode 100644 index f37af775da..3539689a3e --- 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(); + 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 ); diff --git a/maintenance/postgres/archives/patch-ipb_address_unique.sql b/maintenance/postgres/archives/patch-ipb_address_unique.sql deleted file mode 100644 index e69de29bb2..0000000000