From bd0aa9bc58aef7c2e562bd2fcf694c85398f25bf Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 22 Oct 2015 09:17:44 +0200 Subject: [PATCH] Change wrong usage of $show.videos_id to $show.id --- .../templates/frontend/viewseries.tpl | 24 +++++---------- .../templates/frontend/viewserieslist.tpl | 16 +++++----- .../omicron/templates/frontend/viewseries.tpl | 30 +++++++------------ .../templates/frontend/viewserieslist.tpl | 16 +++++----- 4 files changed, 35 insertions(+), 51 deletions(-) diff --git a/www/themes/charisma/templates/frontend/viewseries.tpl b/www/themes/charisma/templates/frontend/viewseries.tpl index efef2bdbc..0def8ad83 100644 --- a/www/themes/charisma/templates/frontend/viewseries.tpl +++ b/www/themes/charisma/templates/frontend/viewseries.tpl @@ -38,7 +38,7 @@ {if $show.image != 0}
{$show.title} Logo + src="{$smarty.const.WWW_TOP}/covers/tvshows/{$show.id}.jpg"/>

{/if} @@ -48,16 +48,8 @@

- {if $show|@count == 1 && $isadmin} - Update - From Tv Rage - {/if} - View - in Tv Rage RSS + href="{$smarty.const.WWW_TOP}/rss?show={$show.id}{if $category != ''}&t={$category}{/if}&dl=1&i={$userdata.id}&r={$userdata.rsstoken}">RSS for TV Show

@@ -93,17 +85,17 @@
{if $myshows.id != ''} Edit Remove {else} Add + href="{$smarty.const.WWW_TOP}/myshows/add/{$show.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" + class="myshows" rel="add" name="series{$show.id}" title="Add to My Shows">Add {/if}
diff --git a/www/themes/charisma/templates/frontend/viewserieslist.tpl b/www/themes/charisma/templates/frontend/viewserieslist.tpl index ba9eee82e..7e8f02f05 100644 --- a/www/themes/charisma/templates/frontend/viewserieslist.tpl +++ b/www/themes/charisma/templates/frontend/viewserieslist.tpl @@ -44,23 +44,23 @@ {foreach $series as $s} - {$s.releasetitle|escape:"htmlall"}{if $s.prevdate != ''}
Last: {$s.previnfo|escape:"htmlall"} aired {$s.prevdate|date_format}{/if} + {$s.releasetitle|escape:"htmlall"}{if $s.prevdate != ''}
Last: {$s.previnfo|escape:"htmlall"} aired {$s.prevdate|date_format}{/if} {$s.country|escape:"htmlall"} {$s.genre|escape:"htmlall"|replace:'|':', '} {if $s.userseriesid != ''} - Edit + Edit
- Remove + Remove {else} - Add + Add {/if} - Series
- {if $s.videos_id > 0} - TVRage   - + Series
+ {if $s.id > 0} + TVRage   + {/if} diff --git a/www/themes/omicron/templates/frontend/viewseries.tpl b/www/themes/omicron/templates/frontend/viewseries.tpl index efef2bdbc..38555e390 100644 --- a/www/themes/omicron/templates/frontend/viewseries.tpl +++ b/www/themes/omicron/templates/frontend/viewseries.tpl @@ -29,16 +29,16 @@ {foreach $show as $r} {$r.title} {if !$r@last} / {/if} - {/foreach}{if isset($isadmin)} - Edit{/if} + {/foreach} + {if isset($isadmin)} Edit{/if} {if $catname != ''}Current category shown: {$catname|escape:"htmlall"}{/if}
{if $show.image != 0}
{$show.title} Logo + src="{$smarty.const.WWW_TOP}/covers/tvshows/{$show.id}.jpg"/>

{/if} @@ -48,16 +48,8 @@

- {if $show|@count == 1 && $isadmin} - Update - From Tv Rage - {/if} - View - in Tv Rage RSS + href="{$smarty.const.WWW_TOP}/rss?show={$show.id}{if $category != ''}&t={$category}{/if}&dl=1&i={$userdata.id}&r={$userdata.rsstoken}">RSS for TV Show

@@ -93,17 +85,17 @@
{if $myshows.id != ''} Edit Remove {else} Add + href="{$smarty.const.WWW_TOP}/myshows/add/{$show.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" + class="myshows" rel="add" name="series{$show.id}" title="Add to My Shows">Add {/if}
diff --git a/www/themes/omicron/templates/frontend/viewserieslist.tpl b/www/themes/omicron/templates/frontend/viewserieslist.tpl index ba9eee82e..7e8f02f05 100644 --- a/www/themes/omicron/templates/frontend/viewserieslist.tpl +++ b/www/themes/omicron/templates/frontend/viewserieslist.tpl @@ -44,23 +44,23 @@ {foreach $series as $s} - {$s.releasetitle|escape:"htmlall"}{if $s.prevdate != ''}
Last: {$s.previnfo|escape:"htmlall"} aired {$s.prevdate|date_format}{/if} + {$s.releasetitle|escape:"htmlall"}{if $s.prevdate != ''}
Last: {$s.previnfo|escape:"htmlall"} aired {$s.prevdate|date_format}{/if} {$s.country|escape:"htmlall"} {$s.genre|escape:"htmlall"|replace:'|':', '} {if $s.userseriesid != ''} - Edit + Edit
- Remove + Remove {else} - Add + Add {/if} - Series
- {if $s.videos_id > 0} - TVRage   - + Series
+ {if $s.id > 0} + TVRage   + {/if}