MDL-15716 Tightened dataroot security checks and and 'loud' administrator warning

This commit is contained in:
skodak 2008-08-21 15:29:42 +00:00
parent bd2bf45169
commit bba0beaee2
9 changed files with 142 additions and 10 deletions

View file

@ -70,6 +70,11 @@ class block_admin_tree extends block_base {
// show hidden pages in tree if hidden page active
if ($content->check_access() and (($content->name == $this->section) or !$content->is_hidden())) {
$class = ($content->name == $this->section) ? 'link current' : 'link';
if ($content->name === 'adminnotifications') {
if (admin_critical_warnings_present()) {
$class .= ' criticalnotification';
}
}
if ($content->is_hidden()) {
$class .= ' hidden';
}