X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FgetText.php;h=f519a79052fce1ae1864b7aafee0b9920bb79904;hb=17eba67ef329fb8f444f681e6ff515d1919376cb;hp=7d7c1cc48078ba317a73c065290eb475add8eca2;hpb=c0cdf0e91186728c8e283bbcc977d6831f4b93d1;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 ) {