fixed get_format_name() bug and some cleaning up

This commit is contained in:
moodler 2007-08-10 09:26:56 +00:00
parent ddaff15dfc
commit c91146b995
3 changed files with 3 additions and 13 deletions

View File

@ -4,9 +4,6 @@ require_once('../config.php');
require_once('lib.php');
require_once('pagelib.php');
require_once($CFG->dirroot.'/lib/weblib.php');
if (!empty($THEME->customcorners)) {
require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
}
require_login();
@ -46,10 +43,8 @@ echo '<tr valign="top">';
$blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210);
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="left-column">';
if(blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) {
// if (!empty($THEME->customcorners)) print_custom_corners_start();
if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) {
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
// if (!empty($THEME->customcorners)) print_custom_corners_end();
}
echo '</td>';
@ -59,8 +54,6 @@ echo '</td>';
echo '<td valign="top" id="middle-column">';
//if (!empty($THEME->customcorners)) print_custom_corners_start(TRUE);
$tagname = tag_display_name($tag);
@ -89,7 +82,6 @@ if ($usercount > 0) {
}
//if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '</td>';
@ -100,9 +92,7 @@ $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="right-column">';
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) {
// if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
// if (!empty($THEME->customcorners)) print_custom_corners_end();
}
echo '</td>';

View File

@ -204,7 +204,7 @@ function tag_display_name($tag_object){
global $CFG;
if( !empty($CFG->keeptagnamecase) ) {
if( empty($CFG->keeptagnamecase) ) {
//this is the normalized tag name
return mb_convert_case($tag_object->name, MB_CASE_TITLE,"UTF-8");
}

View File

@ -58,7 +58,7 @@ class page_tag extends page_base {
}
function get_format_name() {
return MY_MOODLE_FORMAT;
return 'tag';
}
//----------- printing funtions -----------