Mercurial > hg > fapweb
changeset 81:491c03e3a2bc
Comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 17 Oct 2013 20:41:22 +0300 |
parents | e51205f2bdd0 |
children | a071dacdcfc5 |
files | createdb.php |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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");