From 41cd10f9035f52dce664aea443f06b15d3463994 Mon Sep 17 00:00:00 2001 From: Michael Johnston Date: Thu, 7 Mar 2013 02:05:19 -0500 Subject: some fixes related to events - add backticks around column "desc" in sql query - fixed query for data passed to showEvent - showEvent was picking up on id from item instead of id from event - fixed references to author info in template --- view/tpl/event.tpl | 2 +- view/tpl/smarty3/event.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/event.tpl b/view/tpl/event.tpl index 80c1dfc55..f1150c158 100644 --- a/view/tpl/event.tpl +++ b/view/tpl/event.tpl @@ -1,7 +1,7 @@ {{ for $events as $event }}
- {{ if $event.item.author-name }}$event.item.author-name{{ endif }} + {{ if $event.item.author.xchan_name }}$event.item.author.xchan_name{{ endif }} $event.html {{ if $event.item.plink }}{{ endif }} {{ if $event.edit }}{{ endif }} diff --git a/view/tpl/smarty3/event.tpl b/view/tpl/smarty3/event.tpl index 1ba472377..76c9433fd 100644 --- a/view/tpl/smarty3/event.tpl +++ b/view/tpl/smarty3/event.tpl @@ -6,7 +6,7 @@ {{foreach $events as $event}}
- {{if $event.item.author-name}}{{$event.item.author-name}}{{/if}} + {{if $event.item.author.xchan_name}}{{$event.item.author.xchan_name}}{{/if}} {{$event.html}} {{if $event.item.plink}}{{/if}} {{if $event.edit}}{{/if}} -- cgit v1.2.3