X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fparse.php;h=9af57da9f87a459c2f2356a51b9afbb5e575941a;hb=f1ff990d544e0acffbdf14ac917ea26c91482ad2;hp=0ec1de9e63a7a2adb6c4421165917ebb5da69051;hpb=98d0403f918991c4cf46abc41c89d9b181313684;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/parse.php b/maintenance/parse.php index 0ec1de9e63..9af57da9f8 100644 --- a/maintenance/parse.php +++ b/maintenance/parse.php @@ -116,10 +116,10 @@ class CLIParser extends Maintenance { * @return Title object */ protected function getTitle() { - $title = - $this->getOption( 'title' ) + $title = $this->getOption( 'title' ) ? $this->getOption( 'title' ) : 'CLIParser'; + return Title::newFromText( $title ); }