summaryrefslogtreecommitdiff
path: root/includes/view/Questions_view.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-29 11:18:17 +0200
committermsquare <msquare@notrademark.de>2016-09-29 11:18:17 +0200
commite965f8d04150fbd17ee1b5fcbca5ae85bbe6d6bd (patch)
treef610d047f1cdc830ffc34881f6ea6d26ef0e3983 /includes/view/Questions_view.php
parent91dafb19ec171e747d9976cf738606759bde3aae (diff)
prohibit inline control structures on model and view
Diffstat (limited to 'includes/view/Questions_view.php')
-rw-r--r--includes/view/Questions_view.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/includes/view/Questions_view.php b/includes/view/Questions_view.php
index c766125b..bdcb8a86 100644
--- a/includes/view/Questions_view.php
+++ b/includes/view/Questions_view.php
@@ -12,26 +12,26 @@ function Questions_view($open_questions, $answered_questions, $ask_action) {
$question['actions'] = '<a href="' . page_link_to("user_questions") . '&action=delete&id=' . $question['QID'] . '">' . _("delete") . '</a>';
}
- return page_with_title(questions_title(), array(
+ return page_with_title(questions_title(), [
msg(),
- '<h2>' . _("Open questions") . '</h2>',
- table(array(
+ heading(_("Open questions"), 2),
+ table([
'Question' => _("Question"),
'actions' => ""
- ), $open_questions),
- '<h2>' . _("Answered questions") . '</h2>',
- table(array(
+ ], $open_questions),
+ heading(_("Answered questions"), 2),
+ table([
'Question' => _("Question"),
'answer_user' => _("Answered by"),
'Answer' => _("Answer"),
'actions' => ""
- ), $answered_questions),
- '<h2>' . _("Ask an archangel") . '</h2>',
- form(array(
+ ], $answered_questions),
+ heading(_("Ask an archangel"), 2),
+ form([
form_textarea('question', _("Your Question:"), ""),
form_submit('submit', _("Save"))
- ), $ask_action)
- ));
+ ], $ask_action)
+ ]);
}
?> \ No newline at end of file