Fixed parameter when displaying an error message.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 15 Jan 2014 20:24:49 +0000 (20:24 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 15 Jan 2014 20:24:49 +0000 (20:24 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@1882 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index 92cb79aa6b2f228f5efd7493c7d1e2f9e74565f1..407b05521ad7c0503a1f1730223d023458e7ccdf 100644 (file)
@@ -922,7 +922,7 @@ class WrReport {
                                        if ($attributes['in_arbeit'] === 'nein') $under_construction = false;
                                        elseif ($attributes['in_arbeit'] === 'ja') $under_construction = true;
                                        elseif ($attributes['in_arbeit'] === '*') $under_construction = null;
                                        if ($attributes['in_arbeit'] === 'nein') $under_construction = false;
                                        elseif ($attributes['in_arbeit'] === 'ja') $under_construction = true;
                                        elseif ($attributes['in_arbeit'] === '*') $under_construction = null;
-                                       else throw new WrReportException(wfMessage('wrreport-rodelbahntabelle-invalid-attribute-value', $tagname, 'in_arbeit', $under_construction)->text());
+                                       else throw new WrReportException(wfMessage('wrreport-rodelbahntabelle-invalid-attribute-value', $tagname, 'in_arbeit', $attributes['in_arbeit'])->text());
                                        unset($attributes['in_arbeit']);
                                }
 
                                        unset($attributes['in_arbeit']);
                                }