Fix more errors.

This commit is contained in:
DariusIII
2015-10-15 14:17:46 +02:00
parent d018d8c5e8
commit e3be427b41
4 changed files with 11 additions and 6 deletions
+1
View File
@@ -5,6 +5,7 @@
Fix: Change instantiation of classes
Fix: Define missing NN_TMUX folder.
Fix: More errors.
Fix: even more errors.
2015-10-15 DariusIII
Bug: remove tvrage patch
2015-10-15 DariusIII
+5 -5
View File
@@ -391,7 +391,7 @@ class Games
// Process Steam first before giantbomb
// Steam has more details
$this->_gameResults = [];
$this->_getGame = new \Steam();
$this->_getGame = new Steam();
$this->_classUsed = "steam";
$this->_getGame->cookie = $this->cookie;
$this->_getGame->searchTerm = $gameInfo['title'];
@@ -399,7 +399,7 @@ class Games
$this->_gameResults = $this->_getGame->getAll();
}
if (count($this->_gameResults) < 1) {
$this->_getGame = new \Desura();
$this->_getGame = new Desura();
$this->_classUsed = "desura";
$this->_getGame->cookie = $this->cookie;
$this->_getGame->searchTerm = $gameInfo['title'];
@@ -408,7 +408,7 @@ class Games
}
}
if (count($this->_gameResults) < 1) {
$this->_getGame = new \Greenlight();
$this->_getGame = new Greenlight();
$this->_classUsed = "gl";
$this->_getGame->cookie = $this->cookie;
$this->_getGame->searchTerm = $gameInfo['title'];
@@ -771,7 +771,7 @@ class Games
return false;
}
}
} catch (Exception $e) {
} catch (\Exception $e) {
$result = false;
}
@@ -794,7 +794,7 @@ class Games
];
$result = json_decode(json_encode($obj->game($this->_gameID, $fields)), true);
$result = $result['results'];
} catch (Exception $e) {
} catch (\Exception $e) {
$result = false;
}
+1 -1
View File
@@ -14,7 +14,7 @@ use newznab\utility\Utility;
* decoding yEnc articles, decompressing article headers.
* Extends PEAR's Net_NNTP_Client class, overrides some functions.
*/
class NNTP extends Net_NNTP_Client
class NNTP extends \Net_NNTP_Client
{
public $pdo;
+4
View File
@@ -4,6 +4,10 @@ namespace newznab\libraries;
use \newznab\db\Settings;
use \newznab\processing\PostProcess;
use newznab\controllers\ColorCLI;
use newznab\controllers\NZB;
use newznab\controllers\RequestID;
use newznab\controllers\NNTP;
use newznab\controllers\Nfo;
require_once(NN_LIBS . 'forkdaemon-php' . DS . 'fork_daemon.php');