Fix references to site.

This commit is contained in:
DariusIII
2015-06-03 23:13:26 +02:00
parent 19244def00
commit 72ac059200
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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);
@@ -60,7 +60,7 @@
</td>
</tr>
{if $isadmin || !$publicview}<tr><th title="Not public">Excluded Categories:</th><td>{$exccats|replace:",":"<br/>"}</td></tr>{/if}
{if $page->site->sabintegrationtype == 2 && $user.id==$userdata.id}
{if $page->settings->getSetting('sabintegrationtype') == 2 && $user.id==$userdata.id}
<tr><th>SABnzbd Integration:</th>
<td>
Url: {if $saburl == ''}N/A{else}{$saburl}{/if}<br/>
@@ -42,7 +42,7 @@
<fieldset>
<legend>Site Preferences</legend>
<table class="input">
{if $page->site->userselstyle == 1}
{if $page->settings->getSetting('userselstyle') == 1}
<tr>
<th>Site theme:</th>
<td>
@@ -113,7 +113,7 @@
</table>
</fieldset>
{if $page->site->sabintegrationtype != 1}
{if $page->settings->getSetting('sabintegrationtype') != 1}
<fieldset>
<legend>Queue Type</legend>
<table class="table table-condensed input">
@@ -130,7 +130,7 @@
</table>
</fieldset>
{/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)}
<fieldset>
<legend>NZBGet Integration</legend>
<table class="table table-condensed input">
@@ -164,7 +164,7 @@
</table>
</fieldset>
{/if}
{if $user.queuetype == 1 && $page->site->sabintegrationtype == 2}
{if $user.queuetype == 1 && $page->settings->getSetting('sabintegrationtype') == 2}
<fieldset>
<legend>SABnzbd Integration</legend>
<table class="input">
@@ -1,10 +1,10 @@
{if $error == ''}
{if $page->site->sabintegrationtype > 0 || $user.queuetype == 2}
{if $page->settings->getSetting('sabintegrationtype') > 0 || $user.queuetype == 2}
<p style="text-align:center;">
The following queue is pulled from
<a href="{$serverURL|escape:"htmlall"}">{$serverURL|escape:"htmlall"}</a>.
<br />
{if $page->site->sabintegrationtype == 2 || $user.queuetype == 2}Edit your queue settings in <a href="{$smarty.const.WWW_TOP}/profileedit">your profile</a>.{/if}
{if $page->settings->getSetting('sabintegrationtype') == 2 || $user.queuetype == 2}Edit your queue settings in <a href="{$smarty.const.WWW_TOP}/profileedit">your profile</a>.{/if}
</p>
<div class="sab_queue"></div>
{if $user.queuetype == 2}