X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetText.php;h=f519a79052fce1ae1864b7aafee0b9920bb79904;hb=e39699f90f696dc589878cd6038a3de97b70ca89;hp=7d7c1cc48078ba317a73c065290eb475add8eca2;hpb=075bb89246812bb24fe2d0447a03b33a25446d9b;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 ) {