X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfetchText.php;h=7e1b527defae2facc19a148b19d25421a52603d3;hb=1c80fe572eec7610f35c87e0a43e49d886193d58;hp=cf128388db7727108f8f3e359f825b7e0a7b4145;hpb=0e289eae349ce35d03af3e8fc10e9ad2e0119f26;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fetchText.php b/maintenance/fetchText.php index cf128388db..7e1b527def 100644 --- a/maintenance/fetchText.php +++ b/maintenance/fetchText.php @@ -32,9 +32,10 @@ require_once __DIR__ . '/Maintenance.php'; class FetchText extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Fetch the raw revision blob from an old_id.\n" . + $this->addDescription( "Fetch the raw revision blob from an old_id.\n" . "NOTE: Export transformations are NOT applied. " . - "This is left to backupTextPass.php"; + "This is left to backupTextPass.php" + ); } /** @@ -77,8 +78,8 @@ class FetchText extends Maintenance { private function doGetText( $db, $id ) { $id = intval( $id ); $row = $db->selectRow( 'text', - array( 'old_text', 'old_flags' ), - array( 'old_id' => $id ), + [ 'old_text', 'old_flags' ], + [ 'old_id' => $id ], __METHOD__ ); $text = Revision::getRevisionText( $row ); if ( $text === false ) {