]> git.mjollnir.org Git - moodle.git/commitdiff
changes made to ensure compatibilty with core admin files (admin/adminlib.php), where...
authorvinkmar <vinkmar>
Mon, 21 Aug 2006 04:08:00 +0000 (04:08 +0000)
committervinkmar <vinkmar>
Mon, 21 Aug 2006 04:08:00 +0000 (04:08 +0000)
blocks/admin_2/block_admin_2.php

index fb230b5d42f73fc1d49dc9268bf36336a67bdd3f..523ab9d347d5e8657be1a7699bab185e97907a28 100644 (file)
@@ -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 = '';
     }