From: moodler Date: Fri, 10 Aug 2007 09:26:56 +0000 (+0000) Subject: fixed get_format_name() bug and some cleaning up X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c91146b9951fb76ce1f0254334b3a8bc8e572cc8;p=moodle.git fixed get_format_name() bug and some cleaning up --- diff --git a/tag/index.php b/tag/index.php index 7fd7909c39..d3c60a57e2 100644 --- a/tag/index.php +++ b/tag/index.php @@ -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 ''; $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210); echo ''; -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 ''; @@ -59,8 +54,6 @@ echo ''; echo ''; -//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 ''; @@ -100,9 +92,7 @@ $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks echo ''; 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 ''; diff --git a/tag/lib.php b/tag/lib.php index 42679b1233..c057113be9 100644 --- a/tag/lib.php +++ b/tag/lib.php @@ -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"); } diff --git a/tag/pagelib.php b/tag/pagelib.php index d6505fc610..b1ac513759 100644 --- a/tag/pagelib.php +++ b/tag/pagelib.php @@ -58,7 +58,7 @@ class page_tag extends page_base { } function get_format_name() { - return MY_MOODLE_FORMAT; + return 'tag'; } //----------- printing funtions -----------