|
From: Benjamin C. <bc...@us...> - 2002-04-03 19:04:29
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv13740/admin
Modified Files:
configure.php
Log Message:
Switching the location of the css file. Color scheme now selectable on the configuration page
Index: configure.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/configure.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- configure.php 3 Apr 2002 00:58:26 -0000 1.6
+++ configure.php 3 Apr 2002 18:18:02 -0000 1.7
@@ -30,6 +30,11 @@
if (isset($_pv['submit'])) {
foreach ($_pv as $k => $v) {
$db->query('update '.TBL_CONFIGURATION." set varvalue = '$v' where varname = '$k'");
+
+ // Refresh the template variable now instead of waiting for the next page load.
+ if ($k == 'STYLE') {
+ $t->assign('STYLE', $v);
+ }
}
}
|