mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
blocks/admin_tree: applicable_formats() is called as a class method
Can't find it documented anywhere, but applicable_formats() is only ever called as a class method, so it cannot say $this. Instead, say block_admin_tree::has_admin_caps().
This commit is contained in:
parent
2e159efb1c
commit
9a55125ef6
@ -22,7 +22,7 @@ class block_admin_tree extends block_base {
|
||||
}
|
||||
|
||||
function applicable_formats() {
|
||||
if ($this->has_admin_caps()) {
|
||||
if (block_admin_tree::has_admin_caps()) {
|
||||
return array('site' => true, 'admin' => true);
|
||||
} else {
|
||||
return array('site' => true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user