Add date in open/closed text.
[philipp/winterrodeln/mediawiki_extensions/wrreport.git] / wrreport_body.php
index 0afeb5bbc6679bcffab0edc2db69f6e4ab192211..00c9e785f28804241a6981afacada336e65fe8c3 100644 (file)
@@ -824,9 +824,11 @@ class WrReport {
                                $td = $tr->appendElement('td');
                                if ($row->show_status) {
                                        if ($row->status == 'open') {
-                                               $td->appendElement('img', array('src' => '/vorlagen/s_open.png', 'alt' => wfMessage('wrreport-icon-intermaps-open')->text(), 'title' => wfMessage('wrreport-icon-intermaps-open')->text()));
+                                               $msg = wfMessage('wrreport-icon-intermaps-open', $row->last_update)->text();
+                                               $td->appendElement('img', array('src' => '/vorlagen/s_open.png', 'alt' => $msg, 'title' => $msg));
                                        } elseif ($row->status == 'closed') {
-                                               $td->appendElement('img', array('src' => '/vorlagen/s_closed.png', 'alt' => wfMessage('wrreport-icon-intermaps-closed')->text(), 'title' => wfMessage('wrreport-icon-intermaps-closed')->text()));
+                                               $msg = wfMessage('wrreport-icon-intermaps-closed', $row->last_update)->text();
+                                               $td->appendElement('img', array('src' => '/vorlagen/s_closed.png', 'alt' => $msg, 'title' => $msg));
                                        } else {
                                                $td->appendText($row->status);
                                        }