X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=install%2Findex.php;h=1ae782a2bc8656d68e4e61871e3e0e3075945f53;hb=19438d30215e59c8433d869b0ff23777c7bc3ab2;hp=b6c6abec02c2de3878ee1b6262481062979dd950;hpb=c97d23c5334b363250a1d7cfc5cffd0087f35c21;p=github%2Fwallabag%2Fwallabag.git diff --git a/install/index.php b/install/index.php index b6c6abec..1ae782a2 100755 --- a/install/index.php +++ b/install/index.php @@ -1,4 +1,13 @@ + * @copyright 2013 + * @license http://opensource.org/licenses/MIT see COPYING file + */ + $errors = array(); $successes = array(); @@ -101,7 +110,7 @@ else if (isset($_POST['install'])) { $sql_structure = file_get_contents('install/mysql.sql'); } - else if ($_POST['db_engine'] == 'postgresql') { + else if ($_POST['db_engine'] == 'postgres') { $db_path = 'pgsql:host=' . $_POST['pg_server'] . ';dbname=' . $_POST['pg_database']; $content = str_replace("define ('STORAGE_SERVER', 'localhost');", "define ('STORAGE_SERVER', '".$_POST['pg_server']."');", $content); $content = str_replace("define ('STORAGE_DB', 'poche');", "define ('STORAGE_DB', '".$_POST['pg_database']."');", $content); @@ -262,7 +271,7 @@ php composer.phar install
  • - +