From d9ca6d5550922681c70cd16293dc6a79cd7e92be Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 7 Mar 2006 10:34:08 +0000 Subject: [PATCH] Put $CFG->pagepath in a more logical position --- admin/filter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/filter.php b/admin/filter.php index 51c77e05003..5d3c5ab4cef 100644 --- a/admin/filter.php +++ b/admin/filter.php @@ -23,6 +23,10 @@ $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' ); @@ -71,10 +75,6 @@ // 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", "$txt->administration -> $txt->configuration " .