blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks

This commit is contained in:
tjhunt
2009-05-06 09:28:26 +00:00
parent b80856bd6e
commit cb6402296c
19 changed files with 77 additions and 82 deletions
+2 -2
View File
@@ -10,13 +10,13 @@ class block_admin_tree extends block_base {
var $destination;
function init() {
global $PAGE;
$this->title = get_string('administrationsite');
$this->version = 2007101509;
$this->currentdepth = 0;
$this->divcounter = 1;
$this->tempcontent = '';
$this->section = (isset($PAGE->section) ? $PAGE->section : '');
// TODO
$this->section = (isset($this->page->section) ? $this->page->section : '');
$this->pathtosection = array();
$this->expandnodes = array();
}