]> git.mjollnir.org Git - moodle.git/commitdiff
Put $CFG->pagepath in a more logical position
authorthepurpleblob <thepurpleblob>
Tue, 7 Mar 2006 10:34:08 +0000 (10:34 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 7 Mar 2006 10:34:08 +0000 (10:34 +0000)
admin/filter.php

index 51c77e05003659d418b43c831392ddcd66cc4e64..5d3c5ab4cef470d03aa1924821706267e09b97ac 100644 (file)
 
     $filtername =  substr($param->filter, strpos( $param->filter, '/' )+1 ) ;
 
+    // $CFG->pagepath is used to generate the body and id attributes for the body tag
+    // of the page. It is also used to generate the link to the Moodle Docs for this view.
+    $CFG->pagepath = 'filter/' . $filtername . '/config';
+    
     // get translated strings for use on page
     $txt = new Object;
     $txt->managefilters = get_string( 'managefilters' );
     // Display logic
     //==============================
     
-    // $CFG->pagepath is used to generate the body and id attributes for the body tag
-    // of the page. It is also used to generate the link to the Moodle Docs for this view.
-    $CFG->pagepath = 'filter/' . $filtername . '/config';
-    
     $filtername = ucfirst($filtername);
     print_header( "$site->shortname: $txt->managefilters", "$site->fullname",
         "<a href=\"index.php\">$txt->administration</a> -> <a href=\"configure.php\">$txt->configuration</a> " .