From: skodak Date: Sun, 8 Oct 2006 08:36:45 +0000 (+0000) Subject: fixed wrong redirect when editing blocks in stickyblocks page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=14df27ad3c85f5551aafa2c93d53d02e492085ba;p=moodle.git fixed wrong redirect when editing blocks in stickyblocks page --- diff --git a/admin/stickyblocks.php b/admin/stickyblocks.php index d4867b75e1..23f801a3c6 100644 --- a/admin/stickyblocks.php +++ b/admin/stickyblocks.php @@ -35,21 +35,20 @@ if (!empty($pt)) { - print_header($strtitle,$strtitle,''. - get_string('administration').' -> '.$strtitle); - - echo ''; - echo ''; - require_once($CFG->dirroot.$pagetypes[$pt]['lib']); define('ADMIN_STICKYBLOCKS',$pt); $PAGE = page_create_object($pt); - $blocks = blocks_setup($PAGE,BLOCKS_PINNED_TRUE); - $blocks_preferred_width = bounded_number(180, blocks_preferred_width($blocks[BLOCK_POS_LEFT]), 210); + + print_header($strtitle,$strtitle,''. + get_string('administration').' -> '.$strtitle); + + echo '
'; + echo ''; + echo '
'; blocks_print_group($PAGE, $blocks, BLOCK_POS_LEFT);