]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
further stylesheet simplification related fixes
[tt-rss.git] / include / sanity_check.php
index a84959f8e846600eff23fdd0f40a86103c705bdd..9c089bda2e728b290df80a0413d074bac657dadf 100755 (executable)
                        }
 
                        if (SINGLE_USER_MODE) {
-                               $result = db_query("SELECT id FROM ttrss_users WHERE id = 1");
+                           $pdo = DB::pdo();
 
-                               if (db_num_rows($result) != 1) {
+                               $res = $pdo->query("SELECT id FROM ttrss_users WHERE id = 1");
+
+                               if (!$res->fetch()) {
                                        array_push($errors, "SINGLE_USER_MODE is enabled in config.php but default admin account is 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">