Fixed some bugs in the installer that prevented it from working without mod_rewrite and/or with a table_prefix present
authorDan
Wed, 26 Mar 2008 16:51:42 -0400
changeset 510 290fa071842a
parent 509 175df10e0b56
child 511 f88c8c79d784
Fixed some bugs in the installer that prevented it from working without mod_rewrite and/or with a table_prefix present
includes/paths.php
install/.htaccess
install/includes/stages/website.php
--- a/includes/paths.php	Wed Mar 26 02:56:23 2008 -0400
+++ b/includes/paths.php	Wed Mar 26 16:51:42 2008 -0400
@@ -654,7 +654,7 @@
     
     @set_time_limit(0);
     
-    $q = $db->sql_query('DELETE FROM search_index;');
+    $q = $db->sql_query('DELETE FROM ' . table_prefix . 'search_index;');
     if ( !$q )
       $db->_die();
     
--- a/install/.htaccess	Wed Mar 26 02:56:23 2008 -0400
+++ b/install/.htaccess	Wed Mar 26 16:51:42 2008 -0400
@@ -1,8 +1,8 @@
 # Used for testing mod_rewrite.
-
+<IfModule mod_rewrite.c>
 RewriteEngine on
 
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule (.*) install.php?do=modrewrite_test&str=$1
-
+</IfModule>
--- a/install/includes/stages/website.php	Wed Mar 26 02:56:23 2008 -0400
+++ b/install/includes/stages/website.php	Wed Mar 26 16:51:42 2008 -0400
@@ -52,7 +52,7 @@
     {
       if ( ajax.responseText == 'good_shortened' )
       {
-        ajaxMrwSet('standard');
+        ajaxMrwSet('shortened');
       }
       else
       {