]> git.mjollnir.org Git - moodle.git/commitdiff
Added $CFG->pagepath to the blocks_execute_action() function for the config
authorvyshane <vyshane>
Thu, 16 Mar 2006 04:55:43 +0000 (04:55 +0000)
committervyshane <vyshane>
Thu, 16 Mar 2006 04:55:43 +0000 (04:55 +0000)
action. This is used to generate the Moodle Docs URL for configuration of an
instance of a block.

lib/blocklib.php

index b69c18e38f10145e1e8097cf1be3684c092a625e..5ca1802ce654be7a23660b11648c96ccdbc2b9eb 100644 (file)
@@ -470,6 +470,7 @@ function blocks_execute_action($page, &$pageblocks, $blockaction, $instanceorid,
                 echo '</form>';
 
                 echo '</div>';
+                $CFG->pagepath = 'blocks/' . $block->name;
                 print_footer();
                 die(); // Do not go on with the other page-related stuff
             }