[#28] No icons are being displayed in chora due to bug in MIME_Viewer::getIcon
Summary No icons are being displayed in chora due to bug in MIME_Viewer::getIcon
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners
Requester eddie@omegaware.com
Created 2004-03-23 (5656 days ago)
Due
Updated 2004-03-24 (5655 days ago)
Assigned
Resolved 2004-03-24 (5655 days ago)
Milestone
Patch No

Comments
eddie@omegaware.com 2004-03-23 20:32:27
I have the global horde $mime_drivers array setup and configured with 
icons, and nothing in the chora mime_drivers.php..

Vieweing of a .c file calls the appropriate mime viewer (enscript), 
but in the directory view there are no icons for Chora.. I've tracked 
down the problem to line 394 of MIME/Viewer.php where the _getIcon 
function returns null because $mime_drivers['chora'] is not set.. 
Shouldn't the getIcon function also check for the 'horde' application 
if 'chora' does not have any settings? It looks like code is in there 
to do that, but it is not working due to $ob being set to null for the 
compare in getIcon.

  2004-03-23 20:35:28


  2004-03-23 20:35:28


Jan Schneider <jan@horde.org> 2004-03-24 22:50:24
Fixed in CVS already, but thanks for your patch!