summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-16 08:53:34 +0100
committerLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-16 08:53:34 +0100
commita3a7cc66ab624f9318d8bcb0e0cf552325890802 (patch)
tree08889a4e9c45c8b788a37f5eead04d1a178cff2c /templates
parentf4ee76af71b50fdb208f1438de1bdabc42f8c20e (diff)
downloadblogs-a3a7cc66ab624f9318d8bcb0e0cf552325890802.tar.gz
blogs-a3a7cc66ab624f9318d8bcb0e0cf552325890802.tar.bz2
blogs-a3a7cc66ab624f9318d8bcb0e0cf552325890802.zip
Tidy up to remove 'STRICT' warnings
Missed first time around
Diffstat (limited to 'templates')
-rw-r--r--templates/blog_list_post.tpl2
-rw-r--r--templates/center_list_blog_posts.php4
-rw-r--r--templates/crosspost.tpl4
-rw-r--r--templates/view_blog_post.tpl4
4 files changed, 7 insertions, 7 deletions
diff --git a/templates/blog_list_post.tpl b/templates/blog_list_post.tpl
index e022043..f9841b8 100644
--- a/templates/blog_list_post.tpl
+++ b/templates/blog_list_post.tpl
@@ -37,7 +37,7 @@
{if $gBitSystem->getConfig('blog_list_user_as') eq 'link'}
{tr}By{/tr} {displayname hash=$aPost}
{elseif $gBitSystem->getConfig('blog_list_user_as') eq 'avatar' && $aPost.avatar}
- <img src="{$aPost.avatar.avatar}" class="avatar" />
+ <img src="{$aPost.avatar}" class="avatar" />
{else}
{tr}By{/tr} {displayname hash=$aPost nolink=true}
{/if}<br/>
diff --git a/templates/center_list_blog_posts.php b/templates/center_list_blog_posts.php
index bd4bbc2..8cf8199 100644
--- a/templates/center_list_blog_posts.php
+++ b/templates/center_list_blog_posts.php
@@ -23,7 +23,7 @@ if( $gBitUser->hasPermission( 'p_blog_posts_read_future' ) || $gBitUser->isAdmin
if( empty( $futuresHash['user_id'] )) {
if( !empty( $gQueryUserId )) {
$futuresHash['user_id'] = $gQueryUserId;
- } elseif( $_REQUEST['user_id'] ) {
+ } elseif ( isset($_REQUEST['user_id']) ) {
$futuresHash['user_id'] = $_REQUEST['user_id'];
}
}
@@ -59,7 +59,7 @@ if( !empty( $moduleParams )) {
if( empty( $listHash['user_id'] )) {
if( !empty( $gQueryUserId )) {
$listHash['user_id'] = $gQueryUserId;
- } elseif( $_REQUEST['user_id'] ) {
+ } elseif( isset( $_REQUEST['user_id'] ) ) {
$listHash['user_id'] = $_REQUEST['user_id'];
}
}
diff --git a/templates/crosspost.tpl b/templates/crosspost.tpl
index 20d3fc9..e1c2313 100644
--- a/templates/crosspost.tpl
+++ b/templates/crosspost.tpl
@@ -83,13 +83,13 @@
<div class="navigation">
{if $gContent_previous}
<span class="left">
- Previous: <a href="{$gContent_previous->getDisplayUrl()}">{$gContent_previous->getTitle()|escape}</a>
+ Previous: <a href="{$gContent_previous->getContentUrl()}">{$gContent_previous->getTitle()|escape}</a>
</span>
{/if}
{if $gContent_next}
<span class="right">
- Next: <a href="{$gContent_next->getDisplayUrl()}">{$gContent_next->getTitle()|escape}</a>
+ Next: <a href="{$gContent_next->getContentUrl()}">{$gContent_next->getTitle()|escape}</a>
</span>
{/if}
</div>
diff --git a/templates/view_blog_post.tpl b/templates/view_blog_post.tpl
index 70e9c00..552ff7f 100644
--- a/templates/view_blog_post.tpl
+++ b/templates/view_blog_post.tpl
@@ -52,13 +52,13 @@
<div class="navigation">
{if $gContent_previous}
<span class="left">
- Previous: <a href="{$gContent_previous->getDisplayUrl()}">{$gContent_previous->getTitle()|escape}</a>
+ Previous: <a href="{$gContent_previous->getContentUrl()}">{$gContent_previous->getTitle()|escape}</a>
</span>
{/if}
{if $gContent_next}
<span class="right">
- Next: <a href="{$gContent_next->getDisplayUrl()}">{$gContent_next->getTitle()|escape}</a>
+ Next: <a href="{$gContent_next->getContentUrl()}">{$gContent_next->getTitle()|escape}</a>
</span>
{/if}
</div>