From ac134f672a78edd748d90c0b5234df65efe68869 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 15 Oct 2015 12:57:06 +0200 Subject: [PATCH] Add missing use statements. --- Changelog | 2 ++ newznab/db/DbUpdate.php | 1 + www/index.php | 1 + 3 files changed, 4 insertions(+) diff --git a/Changelog b/Changelog index 4ef0b9b88..bad9ba319 100755 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ + 2015-10-15 DariusIII Fix: Add back the patch + Fix: Add missing use statements. 2015-10-15 DariusIII Bug: remove tvrage patch 2015-10-15 DariusIII diff --git a/newznab/db/DbUpdate.php b/newznab/db/DbUpdate.php index 1c39c51bd..ec4ec71a4 100644 --- a/newznab/db/DbUpdate.php +++ b/newznab/db/DbUpdate.php @@ -178,6 +178,7 @@ class DbUpdate echo $this->log->header('Processing patch file: ' . $file); $this->splitSQL($file, ['local' => $local, 'data' => $options['data']]); $current = (integer)$this->settings->getSetting('sqlpatch'); + var_dump($current); $current++; $this->pdo->queryExec("UPDATE settings SET value = '$current' WHERE setting = 'sqlpatch';"); $newName = $matches['drive'] . $matches['path'] . diff --git a/www/index.php b/www/index.php index 23cce5d41..1c10fbcd1 100644 --- a/www/index.php +++ b/www/index.php @@ -2,6 +2,7 @@ require_once 'smarty.php'; use newznab\db\Settings; +use newznab\controllers\Page; $page = new Page;