From 72ac059200d3c9beaa88c7dd42afb5c445995b9b Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 3 Jun 2015 23:13:26 +0200 Subject: [PATCH] Fix references to site. --- www/admin/release-files.php | 2 +- www/admin/site-debug.php | 2 +- www/templates/nntmux/views/frontend/profile.tpl | 2 +- www/templates/nntmux/views/frontend/profileedit.tpl | 8 ++++---- www/templates/nntmux/views/frontend/viewqueue.tpl | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/www/admin/release-files.php b/www/admin/release-files.php index 67c8884e6..d4c4f3f07 100644 --- a/www/admin/release-files.php +++ b/www/admin/release-files.php @@ -16,7 +16,7 @@ if (isset($_GET["id"])) if (!$rel) $page->show404(); - $nzbpath = $nzb->getNZBPath($_GET["id"], $page->site->nzbpath); + $nzbpath = $nzb->getNZBPath($_GET["id"], $page->settings->getSetting('nzbpath')); if (!file_exists($nzbpath)) $page->show404(); diff --git a/www/admin/site-debug.php b/www/admin/site-debug.php index c3be70921..34bde2d43 100644 --- a/www/admin/site-debug.php +++ b/www/admin/site-debug.php @@ -4,7 +4,7 @@ require_once("config.php"); $page = new AdminPage(); -$s = $page->site; +$s = $page->settings; unset($s->siteseed); unset($s->amazonprivkey); unset($s->tmdbkey); diff --git a/www/templates/nntmux/views/frontend/profile.tpl b/www/templates/nntmux/views/frontend/profile.tpl index c83c16aa3..4950c917f 100644 --- a/www/templates/nntmux/views/frontend/profile.tpl +++ b/www/templates/nntmux/views/frontend/profile.tpl @@ -60,7 +60,7 @@ {if $isadmin || !$publicview}Excluded Categories:{$exccats|replace:",":"
"}{/if} - {if $page->site->sabintegrationtype == 2 && $user.id==$userdata.id} + {if $page->settings->getSetting('sabintegrationtype') == 2 && $user.id==$userdata.id} SABnzbd Integration: Url: {if $saburl == ''}N/A{else}{$saburl}{/if}
diff --git a/www/templates/nntmux/views/frontend/profileedit.tpl b/www/templates/nntmux/views/frontend/profileedit.tpl index 5bb1ab0b3..a17269665 100644 --- a/www/templates/nntmux/views/frontend/profileedit.tpl +++ b/www/templates/nntmux/views/frontend/profileedit.tpl @@ -42,7 +42,7 @@
Site Preferences - {if $page->site->userselstyle == 1} + {if $page->settings->getSetting('userselstyle') == 1}
Site theme: @@ -113,7 +113,7 @@
- {if $page->site->sabintegrationtype != 1} + {if $page->settings->getSetting('sabintegrationtype') != 1}
Queue Type @@ -130,7 +130,7 @@
{/if} - {if $user.queuetype == 2 && ($page->site->sabintegrationtype == 0 || $page->site->sabintegrationtype == 2)} + {if $user.queuetype == 2 && ($page->settings->getSetting('sabintegrationtype') == 0 || $page->settings->getSetting('sabintegrationtype') == 2)}
NZBGet Integration @@ -164,7 +164,7 @@
{/if} - {if $user.queuetype == 1 && $page->site->sabintegrationtype == 2} + {if $user.queuetype == 1 && $page->settings->getSetting('sabintegrationtype') == 2}
SABnzbd Integration diff --git a/www/templates/nntmux/views/frontend/viewqueue.tpl b/www/templates/nntmux/views/frontend/viewqueue.tpl index f1b36cb4a..ef5c4ced2 100644 --- a/www/templates/nntmux/views/frontend/viewqueue.tpl +++ b/www/templates/nntmux/views/frontend/viewqueue.tpl @@ -1,10 +1,10 @@ {if $error == ''} -{if $page->site->sabintegrationtype > 0 || $user.queuetype == 2} +{if $page->settings->getSetting('sabintegrationtype') > 0 || $user.queuetype == 2}

The following queue is pulled from {$serverURL|escape:"htmlall"}.
- {if $page->site->sabintegrationtype == 2 || $user.queuetype == 2}Edit your queue settings in your profile.{/if} + {if $page->settings->getSetting('sabintegrationtype') == 2 || $user.queuetype == 2}Edit your queue settings in your profile.{/if}

{if $user.queuetype == 2}