[Postfixadmin-devel] Problem in handling of $CONF['theme_logo']
Brought to you by:
christian_boltz,
gingerdog
|
From: Ullrich v. B. <uz...@mu...> - 2016-12-20 19:39:31
|
This is in postfixadmin version 3.0.
I didn't want to mess with internal postfixadmin directories and stored my
custom company logo in another path: /images/mylogo.png. So config.inc.php
contains
$CONF['theme_logo'] = '/images/mylogo.png';
This works well with the admin login page, but not with the user login page.
The generated HTML code for the user login page contains:
<a href='main.php'><img id="login_header_logo" src="..//images/mylogo.png" alt="Logo" /></a>
postfixadmin prepends "../" to the configured path and makes it impossible to
use any path that is not relative to the postfixadmin directory. This comes
from smarty.inc.php:
if (!isset($rel_path)) $rel_path = ''; # users/* sets this to '../'
$CONF['theme_css'] = $rel_path . htmlentities($CONF['theme_css']);
and all of the files in the "users" subdirectory, where rel_path is set to
"../".
I didn't know how fix it without breaking something. Maybe one of the
developers can have a look at it or at least open a ticket so it may get fixed
somewhere along the way. Thanks!
Regards
Uz
--
Ullrich von Bassewitz uz...@mu...
Encrypted email preferred PGP Key-Id: 29D93B10
|