forum.coppermine-gallery.net
Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Andi on February 07, 2005, 01:51:07 am
-
Hello :)
in file
Coppermine version: 1.4.1
$Source: /cvsroot/coppermine/devel/calendar.php,v $
$Revision: 1.7 $
$Author: nibbler999 $
$Date: 2005/01/14 14:11:01 $
this code:
<link rel="stylesheet" href="themes/
<?php
if ($USER['theme']) {
print $USER['theme'];
} else {
print $CONFIG['theme'];
}
?>
/style.css" />
makes a linebreak after themes/ and the stylesheet does not load.
I've change this Lines to:
<link href="themes/<?= $CONFIG['theme'] ?>/style.css" rel="stylesheet" type="text/css">
And in line #74, this code:
return "$s?action=".$_REQUEST['action']."&month=$month&year=$year";
should be:
return "$s?action=".$_REQUEST['action']."&month=$month&year=$year";
And html-Validator says "missing doctype declaration" ;)
-
Doesn't your change completely remove the user theme option? Wouldn't it be more appropriate to use this:
echo '<link rel="stylesheet" href="themes/' . ($USER['theme'] ? $USER['theme'] : $CONFIG['theme']) . '/style.css" />';
-
Hi :)
no, i think in cpg 1.4.x it's no problem.
The setting $CONFIG['theme'] is redeclared in init.inc.php, in dependence of the user attitude:
// Load theme file
if (isset($USER['theme']) && !strstr($USER['theme'], '/') && is_dir(UDB_CPG_DIR.'themes/' . $USER['theme'])) {
$CONFIG['theme'] = strtr($USER['theme'], '$/\\:*?"\'<>|`', '____________');
} else {
unset($USER['theme']);
}
-
self-assign, will commit shortly.
Joachim
-
done, please confirm.
Joachim
-
Ok, it works fine :)
one small thing:
the <html> End-Tag is missing in this file
-
added missing </html>-tag. Marking as fixed. Thanks for your great bug reports!
Joachim