MDL-45724 cache: added cache API warnings to the admin notifications page

This commit is contained in:
Sam Hemelryk
2014-07-21 09:49:45 +12:00
parent 7bc4ca8b88
commit f7a54f619a
6 changed files with 61 additions and 16 deletions
+7 -1
View File
@@ -376,10 +376,16 @@ class core_cache_renderer extends plugin_renderer_base {
/**
* Renders an array of notifications for the cache configuration screen.
*
* Takes an array of notifications with the form:
* $notifications = array(
* array('This is a success message', true),
* array('This is a failure message', false),
* );
*
* @param array $notifications
* @return string
*/
public function notififications(array $notifications = array()) {
public function notifications(array $notifications = array()) {
if (count($notifications) === 0) {
// There are no notifications to render.
return '';