Fixed bug: "Undefined variable: form"
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 17 Sep 2014 19:41:29 +0000 (19:41 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 17 Sep 2014 19:41:29 +0000 (19:41 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2131 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index fe93f763cb86e211936005fd411013cf83f7fb7c..a70ac10e36afeef1f22299e720cbe50e4c68c099 100644 (file)
@@ -595,8 +595,8 @@ class WrReport {
                // report error
                if (!is_null($error_key)) {
                        $doc = new WrDOMDocument();
-                       $doc->appendElement('p')->appendElement('em')->appendText(wfMessage($error_key)->text());
-                       return $doc->saveHTML($form);
+                       $p = $doc->appendElement('p')->appendElement('em')->appendText(wfMessage($error_key)->text());
+                       return $doc->saveHTML($p);
                }
 
                // Calling "$title = $parser->getTitle(); $title->invalidateCache();" doesn't help here to force regeneration