]> git.mjollnir.org Git - moodle.git/commitdiff
fixed get_format_name() bug and some cleaning up
authormoodler <moodler>
Fri, 10 Aug 2007 09:26:56 +0000 (09:26 +0000)
committermoodler <moodler>
Fri, 10 Aug 2007 09:26:56 +0000 (09:26 +0000)
tag/index.php
tag/lib.php
tag/pagelib.php

index 7fd7909c39c2961b2219dcecd2c8f10c225f131f..d3c60a57e22baf84b5588ecc5c3c3d9871eb1d04 100644 (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>';
 
index 42679b12332b143bad707d35fa95abf5b23cff30..c057113be93e7eb1ac3c6bdc103470dfb38b83e7 100644 (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"); 
     }
index d6505fc61057911777ea7d0ac7384de88b62c0d1..b1ac5137591fecfa4fa181164507fed43593525c 100644 (file)
@@ -58,7 +58,7 @@ class page_tag extends page_base {
     }
 
     function get_format_name() {
-        return MY_MOODLE_FORMAT;
+        return 'tag';
     }
     
     //-----------  printing funtions -----------