Horde Webclient
Nathan Toone
nathan at toonetown.com
Wed May 12 17:04:23 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK - so after reading through css.php, it appears that the only place that
horde reads its theme is from posted form data (that is, it is currently only
a per-user setting).
I thought that the ability to set a system-wide default theme would be desired
(I desire it...), so I edited css.php so that it would read the value from
$conf['css']['theme'] set in the prefs file as a default theme. A
user-specified theme will override that. If no default theme is set, it just
uses the system default (as it is now)
Here is a diff of what I did to css.php:
- --- css.php.orig 2004-05-12 15:10:00.000000000 +0000
+++ css.php 2004-05-12 15:03:31.000000000 +0000
@@ -26,6 +26,10 @@
}
$theme = Util::getFormData('theme');
+
+if (empty($theme)){
+ $theme = $conf['css']['theme'];
+}
if (Util::getFormData('inherit') !== 'no') {
if (@file_exists(HORDE_BASE . '/config/html.php')) {
$file = HORDE_BASE . '/config/html.php';
- -Nathan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAojz3+lPSZRR0T30RAnJmAKCwsB2I/gJIvNzyey/TG6pvSEjKPQCfZYP1
vGVUz6YgbstPujl+Md6g030=
=WTn6
-----END PGP SIGNATURE-----
More information about the users
mailing list