]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
Merge branch 'abbr-tag' of JustAMacUser/tt-rss into master
[tt-rss.git] / include / sanity_check.php
index 7137775850feb9ffec1fbefc6cf86e998e23076d..94578b4040c495c604bd52eb7093b6c5e4d4e490 100755 (executable)
@@ -90,7 +90,7 @@
                                }
                        }
 
-                       if (SINGLE_USER_MODE) {
+                       if (SINGLE_USER_MODE && class_exists("PDO")) {
                            $pdo = DB::pdo();
 
                                $res = $pdo->query("SELECT id FROM ttrss_users WHERE id = 1");
                                array_push($errors, "PHP support for PostgreSQL is required for configured DB_TYPE in config.php");
                        }
 
+                       if (!class_exists("PDO")) {
+                               array_push($errors, "PHP support for PDO is required but was not found.");
+                       }
+
                        if (!function_exists("mb_strlen")) {
                                array_push($errors, "PHP support for mbstring functions is required but was not found.");
                        }
                        <head>
                        <title>Startup failed</title>
                                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-                               <link rel="stylesheet" type="text/css" href="css/utility.css">
+                               <link rel="stylesheet" type="text/css" href="css/default.css">
                        </head>
-               <body class='sanity_failed'>
+               <body class='sanity_failed claro ttrss_utility'>
                <div class="floatingLogo"><img src="images/logo_small.png"></div>
                        <div class="content">