[Tickets #626] NEW: MIME type icons broken if graphics not a subdir
of IMP root.
bugs at bugs.horde.org
bugs at bugs.horde.org
Thu Sep 23 10:55:48 PDT 2004
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=626
-----------------------------------------------------------------------
Ticket | 626
Created By | kyrian at ore.org
Summary | MIME type icons broken if graphics not a subdir of IMP root.
Queue | IMP
Version | 4.0-ALPHA
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
-----------------------------------------------------------------------
kyrian at ore.org (2004-09-23 10:55) wrote:
Hiya,
IMP 4.0 ALPHA, running through a CMS system (and yes, it was hell to get it
working through an existing CMS that wasn't Horde_Template based), whereby
the "graphics" directory isn't a standard subdirectory of the IMP
application root, which broke the MIME type icons.
This can easily be fixed by replacing the call to applicationWebPath in
lib/Horde/MIME/Viewer.php, at about line 423 to a new function called
applicationGraphicsPath, and making that new function access the graphics
path instead of the webroot path, and appending '/graphics' onto it, ie:
function applicationGraphicsPath($path, $app = null)
{
if (!isset($app)) {
$app = $this->_currentApp;
}
if (!$this->applications[$app]['graphics']) {
return str_replace('%application%',
$this->applications[$app]['webroot'].'/graphics', $path);
} else {
return str_replace('%application%',
$this->applications[$app]['graphics'], $path);
}
}
I've done this for $client running Horde stuff, and it works for me.
Yours,
Kev, oRe Net.
More information about the bugs
mailing list