dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Handle null data return in HTMLForm"
[lhc/web/wiklou.git]
/
maintenance
/
cleanupPreferences.php
diff --git
a/maintenance/cleanupPreferences.php
b/maintenance/cleanupPreferences.php
index
4e19b79
..
6e58ae9
100644
(file)
--- a/
maintenance/cleanupPreferences.php
+++ b/
maintenance/cleanupPreferences.php
@@
-34,16
+34,16
@@
class CleanupPreferences extends Maintenance {
public function execute() {
global $wgHiddenPrefs;
public function execute() {
global $wgHiddenPrefs;
- $dbw =
wfG
etDB( DB_MASTER );
- $
dbw->begin(
__METHOD__ );
+ $dbw =
$this->g
etDB( DB_MASTER );
+ $
this->beginTransaction( $dbw,
__METHOD__ );
foreach ( $wgHiddenPrefs as $item ) {
$dbw->delete(
'user_properties',
foreach ( $wgHiddenPrefs as $item ) {
$dbw->delete(
'user_properties',
-
array( 'up_property' => $item )
,
+
[ 'up_property' => $item ]
,
__METHOD__
);
};
__METHOD__
);
};
- $
dbw->commit(
__METHOD__ );
+ $
this->commitTransaction( $dbw,
__METHOD__ );
$this->output( "Finished!\n" );
}
}
$this->output( "Finished!\n" );
}
}