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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user