From: vinkmar Date: Mon, 21 Aug 2006 04:08:00 +0000 (+0000) Subject: changes made to ensure compatibilty with core admin files (admin/adminlib.php), where... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9acea96564ba57bc629e6ad0b63f33dc11440838;p=moodle.git changes made to ensure compatibilty with core admin files (admin/adminlib.php), where $_GET is no longer used --- diff --git a/blocks/admin_2/block_admin_2.php b/blocks/admin_2/block_admin_2.php index fb230b5d42..523ab9d347 100644 --- a/blocks/admin_2/block_admin_2.php +++ b/blocks/admin_2/block_admin_2.php @@ -10,12 +10,13 @@ class block_admin_2 extends block_base { var $destination; function init() { + global $PAGE; $this->title = "Administration (Beta)"; $this->version = 2006081800; $this->currentdepth = 0; $this->spancounter = 1; $this->tempcontent = ''; - $this->section = optional_param("section","",PARAM_PATH); + $this->section = (isset($PAGE->section) ? $PAGE->section : ''); $this->pathtosection = array(); $this->expandjavascript = ''; }