From d0334d15ac41784d7c0178ef34a54630371c0a29 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Tue, 2 Feb 2010 22:02:21 +0000 Subject: use ->getTitle() method instead of ->mInfo.title in templates to allow for cleaner polymorphism --- templates/board_edit.tpl | 6 +++--- templates/list_posts.tpl | 4 ++-- templates/list_topics.tpl | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/board_edit.tpl b/templates/board_edit.tpl index 4e2e85c..e890871 100644 --- a/templates/board_edit.tpl +++ b/templates/board_edit.tpl @@ -1,15 +1,15 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/board_edit.tpl,v 1.10 2009/01/20 22:18:07 dansut Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/board_edit.tpl,v 1.11 2010/02/02 22:02:21 spiderr Exp $ *} {strip}
{bithelp}
{if $preview} -

Preview {$gContent->mInfo.title|escape}

+

Preview {$gContent->getTitle()|escape}

{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$gContent->mInfo}
-

{$gContent->mInfo.title|escape|default:"Board"}

+

{$gContent->getTitle()|escape|default:"Board"}

diff --git a/templates/list_posts.tpl b/templates/list_posts.tpl index be60c57..4509f32 100644 --- a/templates/list_posts.tpl +++ b/templates/list_posts.tpl @@ -1,10 +1,10 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_posts.tpl,v 1.20 2009/10/08 22:20:30 wjames5 Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_posts.tpl,v 1.21 2010/02/02 22:02:21 spiderr Exp $ *} {strip}
diff --git a/templates/list_topics.tpl b/templates/list_topics.tpl index 0edd83d..a4c0281 100644 --- a/templates/list_topics.tpl +++ b/templates/list_topics.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.34 2009/10/08 22:20:30 wjames5 Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.35 2010/02/02 22:02:21 spiderr Exp $ *} {strip}
-

{$board->mInfo.title|escape|default:"Message Board Topic"}

+

{$board->getTitle()|escape|default:"Message Board Topic"}

{if $board->mInfo.parsed_data}

{$board->mInfo.parsed_data}

{/if} -- cgit v1.3