mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Change site table to settings table, move files around and adjust to new settings table. patchDB needs to be fixed for the final patch is is used for.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once("config.php");
|
||||
|
||||
use newznab\db\DB;
|
||||
use newznab\db\Settings;
|
||||
|
||||
$s = new Sites();
|
||||
$site = $s->get();
|
||||
@@ -18,8 +18,8 @@ else
|
||||
{
|
||||
echo "Patchn : Executing patch ".basename($patch)."\n";
|
||||
|
||||
$db = new DB();
|
||||
$rows = $db->query("select * from site");
|
||||
$db = new Settings();
|
||||
$rows = $db->query("select * from settings");
|
||||
|
||||
$dbData = file_get_contents($patch);
|
||||
//fix to remove BOM in UTF8 files
|
||||
|
||||
Reference in New Issue
Block a user