Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20625
Modified Files:
NEWS serendipity_functions_installer.inc.php
Log Message:
fix sqlite dbname rewrite saving
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -d -r1.249 -r1.250
--- NEWS 3 Nov 2004 10:00:16 -0000 1.249
+++ NEWS 6 Nov 2004 10:58:42 -0000 1.250
@@ -3,6 +3,9 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * SQLite database name was not saved properly and could get set to
+ a wrong value when updating configuration (garvinhicking)
+
* Better detection if Apache ErrorDocument can be used
(garvinhicking)
Index: serendipity_functions_installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_installer.inc.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- serendipity_functions_installer.inc.php 3 Nov 2004 10:00:16 -0000 1.36
+++ serendipity_functions_installer.inc.php 6 Nov 2004 10:58:42 -0000 1.37
@@ -722,6 +722,10 @@
// Save all basic config variables to the database
$p = serendipity_parseTemplate(S9Y_CONFIG_TEMPLATE, true);
+ if (isset($_POST['sqlitedbName']) && !empty($_POST['sqlitedbName'])) {
+ $_POST['dbName'] = $_POST['sqlitedbName'];
+ }
+
foreach($p as $key => $entry) {
serendipity_set_config_var(
$entry['name'],
|