]> git.wh0rd.org - tt-rss.git/blobdiff - db-updater.php
daemon2: check if schema version changed
[tt-rss.git] / db-updater.php
index 216986f39e79413d9a60a8c9dd2c0951fd585049..2726110639aad6af7fd29864037a894bf12d7078 100644 (file)
@@ -1,6 +1,6 @@
 <?php
-       set_include_path(get_include_path() . PATH_SEPARATOR .
-               dirname(__FILE__) . "/include");
+       set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
+               get_include_path());
 
        require_once "functions.php";
        require_once "sessions.php";
@@ -39,10 +39,12 @@ function confirmOP() {
 }
 </script>
 
-<div class="floatingLogo"><img src="images/logo_wide.png"></div>
+<div class="floatingLogo"><img src="images/logo_small.png"></div>
 
 <h1><?php echo __("Database Updater") ?></h1>
 
+<div class="content">
+
 <?php
        function getline($fp, $delim) {
                $result = "";
@@ -155,8 +157,8 @@ function confirmOP() {
                        }
                }
 
-               print "<p>".T_sprintf("Finished. Performed <b>%d</b> update(s) up to schema
-                       version <b>%d</b>.", $num_updates, $version)."</p>";
+               print "<p>".sprintf(ngettext("Finished. Performed <b>%d</b> update up to schema version <b>%d</b>.",
+                       "Finished. Performed <b>%d</b> updates up to schema version <b>%d</b>.", $num_updates), $num_updates, $version)."</p>";
 
                print "<form method=\"GET\" action=\"backend.php\">
                        <input type=\"hidden\" name=\"op\" value=\"logout\">
@@ -181,6 +183,8 @@ function confirmOP() {
 
 ?>
 
+</div>
+
 </body>
 </html>