]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
move stylesheets to css/, reference default tt-rss stylesheets from
[tt-rss.git] / include / sanity_check.php
index 0477efd5077fb37d81ea5a7385fe1e061c0b0fe5..29e53fa336f29648f75c4186cd11cc8bca75386d 100644 (file)
@@ -88,7 +88,7 @@
                        }
 
                        if (SINGLE_USER_MODE) {
-                               $result = db_query( "SELECT id FROM ttrss_users WHERE id = 1");
+                               $result = db_query("SELECT id FROM ttrss_users WHERE id = 1");
 
                                if (db_num_rows($result) != 1) {
                                        array_push($errors, "SINGLE_USER_MODE is enabled in config.php but default admin account is not found.");
                                array_push($errors, "PHP support for JSON is required, but was not found.");
                        }
 
-                       if (DB_TYPE == "mysql" && !function_exists("mysql_connect")) {
+                       if (DB_TYPE == "mysql" && !function_exists("mysql_connect") && !function_exists("mysqli_connect")) {
                                array_push($errors, "PHP support for MySQL is required for configured DB_TYPE in config.php.");
                        }
 
                        <head>
                        <title>Startup failed</title>
                                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-                               <link rel="stylesheet" type="text/css" href="utility.css">
+                               <link rel="stylesheet" type="text/css" href="css/utility.css">
                        </head>
                <body>
                <div class="floatingLogo"><img src="images/logo_small.png"></div>