? MDL-19543.txt ? config.php Index: my/index.php =================================================================== RCS file: /cvsroot/moodle/moodle/my/index.php,v retrieving revision 1.16.2.7 diff -u -r1.16.2.7 index.php --- my/index.php 7 Oct 2009 16:27:29 -0000 1.16.2.7 +++ my/index.php 13 Nov 2009 05:26:50 -0000 @@ -24,6 +24,17 @@ die(); } + // Bounds for block widths + // more flexible for theme designers taken from theme config.php + $lmin = (empty($THEME->block_l_min_width)) ? 100 : $THEME->block_l_min_width; + $lmax = (empty($THEME->block_l_max_width)) ? 210 : $THEME->block_l_max_width; + $rmin = (empty($THEME->block_r_min_width)) ? 100 : $THEME->block_r_min_width; + $rmax = (empty($THEME->block_r_max_width)) ? 210 : $THEME->block_r_max_width; + + define('BLOCK_L_MIN_WIDTH', $lmin); + define('BLOCK_L_MAX_WIDTH', $lmax); + define('BLOCK_R_MIN_WIDTH', $rmin); + define('BLOCK_R_MAX_WIDTH', $rmax); $edit = optional_param('edit', -1, PARAM_BOOL); $blockaction = optional_param('blockaction', '', PARAM_ALPHA); @@ -46,7 +57,7 @@ switch ($column) { case 'left': - $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210); + $blocks_preferred_width = bounded_number(BLOCK_L_MIN_WIDTH, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), BLOCK_L_MAX_WIDTH); if(blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) { echo '