From: vyshane Date: Thu, 16 Mar 2006 04:55:43 +0000 (+0000) Subject: Added $CFG->pagepath to the blocks_execute_action() function for the config X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a2c28054b87d6991a2e2181d6302dbba2fa41e41;p=moodle.git Added $CFG->pagepath to the blocks_execute_action() function for the config action. This is used to generate the Moodle Docs URL for configuration of an instance of a block. --- diff --git a/lib/blocklib.php b/lib/blocklib.php index b69c18e38f..5ca1802ce6 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -470,6 +470,7 @@ function blocks_execute_action($page, &$pageblocks, $blockaction, $instanceorid, echo ''; echo ''; + $CFG->pagepath = 'blocks/' . $block->name; print_footer(); die(); // Do not go on with the other page-related stuff }