From 431a82bd8dd67f86bbe20c6b223effcd3a909053 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 10 Aug 2016 10:13:07 +0800 Subject: [PATCH] MDL-55333 mod_feedback: Correct constant name --- mod/feedback/classes/responses_table.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/feedback/classes/responses_table.php b/mod/feedback/classes/responses_table.php index a2522243a0f..5644183f9ac 100644 --- a/mod/feedback/classes/responses_table.php +++ b/mod/feedback/classes/responses_table.php @@ -39,7 +39,7 @@ class mod_feedback_responses_table extends table_sql { /** * Maximum number of feedback questions to display in the "Show responses" table */ - const PREVIEWCOLUNMNSLIMIT = 10; + const PREVIEWCOLUMNSLIMIT = 10; /** * Maximum number of feedback questions answers to retrieve in one SQL query. @@ -262,7 +262,7 @@ class mod_feedback_responses_table extends table_sql { if (!$this->is_downloading()) { // In preview mode do not show all columns or the page becomes unreadable. // The information message will be displayed to the teacher that the rest of the data can be viewed when downloading. - $items = array_slice($items, 0, self::PREVIEWCOLUNMNSLIMIT, true); + $items = array_slice($items, 0, self::PREVIEWCOLUMNSLIMIT, true); } $columnscount = 0; @@ -388,8 +388,8 @@ class mod_feedback_responses_table extends table_sql { return; } - if (count($this->feedbackstructure->get_items(true)) > self::PREVIEWCOLUNMNSLIMIT) { - echo $OUTPUT->notification(get_string('questionslimited', 'feedback', self::PREVIEWCOLUNMNSLIMIT), 'info'); + if (count($this->feedbackstructure->get_items(true)) > self::PREVIEWCOLUMNSLIMIT) { + echo $OUTPUT->notification(get_string('questionslimited', 'feedback', self::PREVIEWCOLUMNSLIMIT), 'info'); } $this->out($this->showall ? $grandtotal : FEEDBACK_DEFAULT_PAGE_COUNT,