]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
query for populate mysql/postgres was called when we choosed sqlite 861/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 8 Oct 2014 19:23:34 +0000 (21:23 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 8 Oct 2014 19:23:34 +0000 (21:23 +0200)
install/index.php

index 00ac4a2317295f7fed3583ac483dbe4072c7e1b0..89dfc0177f58a3a5a6595db9823f4dd9314480a5 100755 (executable)
@@ -155,8 +155,10 @@ else if (isset($_POST['install'])) {
                     }
                 }
 
-                // create database structure
-                $query = $handle->exec($sql_structure);
+                if ($_POST['db_engine'] != "sqlite") {
+                    // create database structure
+                    $query = $handle->exec($sql_structure);
+                }
 
                 // Create user
                 $handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
@@ -254,7 +256,7 @@ else if (isset($_POST['install'])) {
                 <?php endif; ?>    
             <?php endif; ?>
             <p>To install wallabag, you just have to fill the following fields. That's all.</p>
-            <p>Don't forget to check your server compatibility <a href="wallabag_compatibility_test.php?from=install">here</a>.</p>
+            <p>Don't forget to check your server compatibility <a href="install/wallabag_compatibility_test.php?from=install">here</a>.</p>
             <form method="post">
                 <fieldset>
                     <legend><strong>Technical settings</strong></legend>