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:
martinlanghoff 2007-09-19 07:47:38 +00:00
parent 2e159efb1c
commit 9a55125ef6

View File

@ -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);