From 5a186574475b5ceb1ee3f7b1efe117c99e248edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Tue, 21 Nov 2023 20:55:41 +0100 Subject: [PATCH] MDL-80082 tool_lp: Output 'Nothing to display' as notification. --- admin/tool/lp/classes/output/template_cohorts_table.php | 4 ++-- admin/tool/lp/classes/output/template_plans_table.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/tool/lp/classes/output/template_cohorts_table.php b/admin/tool/lp/classes/output/template_cohorts_table.php index 090fd971d7f7e..b5cdc18b3a978 100644 --- a/admin/tool/lp/classes/output/template_cohorts_table.php +++ b/admin/tool/lp/classes/output/template_cohorts_table.php @@ -153,13 +153,13 @@ protected function get_sql_and_params($count = false) { } /** - * Override the default implementation to set a decent heading level. + * Override the default implementation to set a notification. */ public function print_nothing_to_display() { global $OUTPUT; echo $this->render_reset_button(); $this->print_initials_bar(); - echo $OUTPUT->heading(get_string('nothingtodisplay'), 4); + echo $OUTPUT->notification(get_string('nothingtodisplay'), 'info', false); } /** diff --git a/admin/tool/lp/classes/output/template_plans_table.php b/admin/tool/lp/classes/output/template_plans_table.php index 83829f62d7cf9..d280fbf8603d5 100644 --- a/admin/tool/lp/classes/output/template_plans_table.php +++ b/admin/tool/lp/classes/output/template_plans_table.php @@ -161,13 +161,13 @@ protected function get_sql_and_params($count = false) { } /** - * Override the default implementation to set a decent heading level. + * Override the default implementation to set a notification. */ public function print_nothing_to_display() { global $OUTPUT; echo $this->render_reset_button(); $this->print_initials_bar(); - echo $OUTPUT->heading(get_string('nothingtodisplay'), 4); + echo $OUTPUT->notification(get_string('nothingtodisplay'), 'info', false); } /**