X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetText.php;h=f519a79052fce1ae1864b7aafee0b9920bb79904;hb=1af0d7d0251fa7660d65e6a4ad6d90cc142a46bb;hp=7d7c1cc48078ba317a73c065290eb475add8eca2;hpb=b2645d82849ca74b0e6b8df6a3e28e81d0561a58;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getText.php b/maintenance/getText.php index 7d7c1cc480..f519a79052 100644 --- a/maintenance/getText.php +++ b/maintenance/getText.php @@ -33,14 +33,12 @@ require_once __DIR__ . '/Maintenance.php'; class GetTextMaint extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = 'Outputs page text to stdout'; + $this->addDescription( 'Outputs page text to stdout' ); $this->addOption( 'show-private', 'Show the text even if it\'s not available to the public' ); $this->addArg( 'title', 'Page title' ); } public function execute() { - $this->db = wfGetDB( DB_SLAVE ); - $titleText = $this->getArg( 0 ); $title = Title::newFromText( $titleText ); if ( !$title ) {