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
+extension/Scribunto
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
dumpRev.php
diff --git
a/maintenance/storage/dumpRev.php
b/maintenance/storage/dumpRev.php
index
3fffb82
..
5a537aa
100644
(file)
--- a/
maintenance/storage/dumpRev.php
+++ b/
maintenance/storage/dumpRev.php
@@
-21,7
+21,7
@@
* @ingroup Maintenance ExternalStorage
*/
* @ingroup Maintenance ExternalStorage
*/
-require_once
( __DIR__ . '/../Maintenance.php' )
;
+require_once
__DIR__ . '/../Maintenance.php'
;
/**
* Maintenance script that gets the text of a revision,
/**
* Maintenance script that gets the text of a revision,
@@
-36,14
+36,14
@@
class DumpRev extends Maintenance {
}
public function execute() {
}
public function execute() {
- $dbr =
wfGetDB( DB_SLAVE
);
+ $dbr =
$this->getDB( DB_REPLICA
);
$row = $dbr->selectRow(
$row = $dbr->selectRow(
-
array( 'text', 'revision' )
,
-
array( 'old_flags', 'old_text' )
,
- array( 'old_id=rev_text_id', 'rev_id' => $this->getArg() )
+
[ 'text', 'revision' ]
,
+
[ 'old_flags', 'old_text' ]
,
+ [ 'old_id=rev_text_id', 'rev_id' => $this->getArg() ]
);
if ( !$row ) {
);
if ( !$row ) {
- $this->
error( "Row not found", true
);
+ $this->
fatalError( "Row not found"
);
}
$flags = explode( ',', $row->old_flags );
}
$flags = explode( ',', $row->old_flags );
@@
-84,5
+84,5
@@
class DumpRev extends Maintenance {
}
}
}
}
-$maintClass =
"DumpRev"
;
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+$maintClass =
DumpRev::class
;
+require_once
RUN_MAINTENANCE_IF_MAIN
;