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
Remove "$that" from SessionManager
[lhc/web/wiklou.git]
/
maintenance
/
updateRestrictions.php
diff --git
a/maintenance/updateRestrictions.php
b/maintenance/updateRestrictions.php
index
5b5cc04
..
98d9389
100644
(file)
--- a/
maintenance/updateRestrictions.php
+++ b/
maintenance/updateRestrictions.php
@@
-35,12
+35,12
@@
require_once __DIR__ . '/Maintenance.php';
class UpdateRestrictions extends Maintenance {
public function __construct() {
parent::__construct();
class UpdateRestrictions extends Maintenance {
public function __construct() {
parent::__construct();
- $this->
mDescription = "Updates page_restrictions table from old page_restriction column"
;
+ $this->
addDescription( 'Updates page_restrictions table from old page_restriction column' )
;
$this->setBatchSize( 100 );
}
public function execute() {
$this->setBatchSize( 100 );
}
public function execute() {
- $db =
wfG
etDB( DB_MASTER );
+ $db =
$this->g
etDB( DB_MASTER );
if ( !$db->tableExists( 'page_restrictions' ) ) {
$this->error( "page_restrictions table does not exist", true );
}
if ( !$db->tableExists( 'page_restrictions' ) ) {
$this->error( "page_restrictions table does not exist", true );
}