API: Fix PHP warning in action=parse help output
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 11 Feb 2014 15:34:27 +0000 (10:34 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 11 Feb 2014 15:36:14 +0000 (10:36 -0500)
Change I0f41c837 removed a variable while it was still in use.

Bug: 61210
Change-Id: I91ad2e374a85e149303c6e8da7c3d94c1285a72a

includes/api/ApiParse.php

index f5c072a..47ad80f 100644 (file)
@@ -746,6 +746,7 @@ class ApiParse extends ApiBase {
 
        public function getParamDescription() {
                $p = $this->getModulePrefix();
+               $wikitext = CONTENT_MODEL_WIKITEXT;
 
                return array(
                        'text' => "Text to parse. Use {$p}title or {$p}contentmodel to control the content model",