New get_lag variables for all tools. CT#602

skala
Carlos Vargas 15 years ago
parent 9458db82f0
commit f330a17aa3
  1. 2
      main/document/document.php
  2. 5
      main/inc/lib/course_home.lib.php

@ -314,7 +314,7 @@ $image_files_only='';
-----------------------------------------------------------
*/
$interbreadcrumb[]= array ('url'=>'', 'name'=> get_lang('Document'));
$interbreadcrumb[]= array ('url'=>'', 'name'=> get_lang('ToolDocument'));
//------interbreadcrumb for the current directory root path

@ -790,7 +790,10 @@ class CourseHome {
{
$tool_name = stripslashes($toolsRow['name']);
} else {
$tool_name = get_lang(ucfirst($toolsRow['name']));
$list = explode('_',$toolsRow['name']);
foreach($list as &$item) { $item = ucfirst($item); }
$tool_name = get_lang('Tool'.implode($list));
//$tool_name = get_lang(ucfirst($toolsRow['name']));
}
Display::display_icon($toolsRow['image'], $tool_name, array('class'=>'tool-icon','id'=>'toolimage_'.$toolsRow["id"]));

Loading…
Cancel
Save