From 14df27ad3c85f5551aafa2c93d53d02e492085ba Mon Sep 17 00:00:00 2001 From: skodak <skodak> Date: Sun, 8 Oct 2006 08:36:45 +0000 Subject: [PATCH] fixed wrong redirect when editing blocks in stickyblocks page --- admin/stickyblocks.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/admin/stickyblocks.php b/admin/stickyblocks.php index d4867b75e15..23f801a3c62 100644 --- a/admin/stickyblocks.php +++ b/admin/stickyblocks.php @@ -35,21 +35,20 @@ if (!empty($pt)) { + 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,'<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/index.php">'. get_string('administration').'</a> -> '.$strtitle); echo '<table border="0" cellpadding="3" cellspacing="0" width="100%" id="layout-table">'; echo '<tr valign="top">'; - 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); echo '<td valign="top" style="width: '.$blocks_preferred_width.'px;" id="left-column">'; blocks_print_group($PAGE, $blocks, BLOCK_POS_LEFT);