# HG changeset patch # User Matti Hamalainen # Date 1382031682 -10800 # Node ID 491c03e3a2bca35deb77322388228c1bed3da4a7 # Parent e51205f2bdd0f07d4e86a7f0b6551f1dcd757857 Comments. diff -r e51205f2bdd0 -r 491c03e3a2bc createdb.php --- a/createdb.php Thu Oct 17 20:41:03 2013 +0300 +++ b/createdb.php Thu Oct 17 20:41:22 2013 +0300 @@ -249,10 +249,12 @@ } +// Check if database spec provided, if not use default if (($spec = stCArg(2)) === FALSE) $spec = $siteSettings["sqlDB"]; +// Try to connect to database if (!stConnectDB($spec)) die("Could not connect to SQL database '".$spec."'.\n");