From aec195db982fa90a02885ac3a080e9667a1bf75a Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 9 Sep 2014 19:41:58 +0200 Subject: [PATCH] Forgot this. --- bin/postprocess_new.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/postprocess_new.php b/bin/postprocess_new.php index 7947d34b1..9bf98a5d6 100644 --- a/bin/postprocess_new.php +++ b/bin/postprocess_new.php @@ -2,6 +2,7 @@ require_once(dirname(__FILE__) . '/config.php'); require_once(WWW_DIR . '/lib/postprocess.php'); +require_once(WWW_DIR . '/lib/framework/Settings.php'); require_once(WWW_DIR . '/lib/nntp.php'); require_once(WWW_DIR . '/lib/site.php'); require_once(WWW_DIR . '/lib/anidb.php'); @@ -11,6 +12,7 @@ require_once(dirname(__FILE__) . '/../lib/TvAnger.php'); require_once(dirname(__FILE__) . '/../lib/Pprocess.php'); require_once(dirname(__FILE__) . '/../lib/Info.php'); +$pdo = new Settings(); /** Array with possible arguments for run and whether or not those methods of operation require NNTP @@ -65,7 +67,7 @@ if (!isset($argv[1]) || !in_array($argv[1], $args) || !isset($argv[2]) || !in_ar $nntp = null; if ($args[$argv[1]] === true) { - $nntp = new \NNTP(['Settings' => $pdo]); + $nntp = new NNTP(['Settings' => $pdo]); if (($pdo->getSetting('alternate_nntp') == 1 ? $nntp->doConnect(true, true) : $nntp->doConnect()) !== true) { exit($pdo->log->error("Unable to connect to usenet." . PHP_EOL)); }