diff options
author | msquare <msquare@notrademark.de> | 2016-09-29 11:18:17 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-29 11:18:17 +0200 |
commit | e965f8d04150fbd17ee1b5fcbca5ae85bbe6d6bd (patch) | |
tree | f610d047f1cdc830ffc34881f6ea6d26ef0e3983 /includes/view/Questions_view.php | |
parent | 91dafb19ec171e747d9976cf738606759bde3aae (diff) |
prohibit inline control structures on model and view
Diffstat (limited to 'includes/view/Questions_view.php')
-rw-r--r-- | includes/view/Questions_view.php | 22 |
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 |