]> git.mjollnir.org Git - moodle.git/commitdiff
fixed wrong redirect when editing blocks in stickyblocks page
authorskodak <skodak>
Sun, 8 Oct 2006 08:36:45 +0000 (08:36 +0000)
committerskodak <skodak>
Sun, 8 Oct 2006 08:36:45 +0000 (08:36 +0000)
admin/stickyblocks.php

index d4867b75e15a062de17dd1044d85f93c658505ac..23f801a3c6239be7e2314482b9577420e37ea61f 100644 (file)
 
     if (!empty($pt)) {
 
-        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);
+
+        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">';
+
         echo '<td valign="top" style="width: '.$blocks_preferred_width.'px;" id="left-column">';
         
         blocks_print_group($PAGE, $blocks, BLOCK_POS_LEFT);