fix: folder mime now also resides in api template folder

This commit is contained in:
Cornelius Weiß 2005-11-20 16:16:08 +00:00
parent 9320913b9e
commit d13a6c3ab9
2 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ $view = new $classname;
$params['parsed_time'] = $parsed_time = parse_time($time);
$params['folderNb'] = $folderNb;
$folders_body .= $view->folder_item($params);
$folderJSArray .= "['images/ext/folder_small.gif', '".sanitize2($entry)."', '".$MY_MESSAGES['folder']."', '".$parsed_time."'],\n";
$folderJSArray .= "['". $GLOBALS['egw_info']['server']['webserver_url']. '/phpgwapi/templates/default/images/mime/folder_small.gif'. "', '".sanitize2($entry)."', '".$MY_MESSAGES['folder']."', '".$parsed_time."'],\n";
$folderNb++;
} else {
$entries_cnt++;

View File

@ -16,7 +16,7 @@ class view_text {
function folder_item($params)
{
return '<tr id="D'.$params['folderNb'].'">
<td width="4%"><img src="img/ext/folder_small.gif" width="16" height="16" border="0" alt="'.$params['entry'].'" /></td>
<td width="4%"><img src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/phpgwapi/templates/default/images/mime/folder_small.gif'.'" width="16" height="16" border="0" alt="'.$params['entry'].'" /></td>
<td width="50%"><div style="height:15px; overflow:hidden;"><a href="javascript:changeDir('.$params['folderNb'].');" title="'.$params['entry'].'">'.$params['entry'].'</a></div></td>
<td width="18%" align="right">'.$params['MY_MESSAGES']['folder'].'</td>
<td width="25%">'.$params['parsed_time'].'</td>