6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#626] MIME type icons broken if graphics not a subdir of IMP root.
*
Your Email Address
*
Spam protection
Enter the letters below:
__ .__ . .. . / `[__) | ||__| \__.| \\__|\__|| |
Comment
> 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.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers