diff options
| author | wjames5 <will@tekimaki.com> | 2009-10-09 04:43:05 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2009-10-09 04:43:05 +0000 |
| commit | 32d8ba87315b09d1399bca3c8a6aa235ba27deca (patch) | |
| tree | c395cc55cfc6a796c8114e67f3007e35b2fa93aa | |
| parent | 3bde3080adb2665e56c79a6be90c5d649d9f1b83 (diff) | |
| download | boards-32d8ba87315b09d1399bca3c8a6aa235ba27deca.tar.gz boards-32d8ba87315b09d1399bca3c8a6aa235ba27deca.tar.bz2 boards-32d8ba87315b09d1399bca3c8a6aa235ba27deca.zip | |
make sure object existsR270
| -rw-r--r-- | templates/header_inc.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl index 7309ce4..4358037 100644 --- a/templates/header_inc.tpl +++ b/templates/header_inc.tpl @@ -46,10 +46,10 @@ /* ]]> */</script> {if $gBitSystem->isPackageActive( 'rss' )} - {if $smarty.request.b} + {if $board && $smarty.request.b} <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} RSS" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=rss20&b={$smarty.request.b}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> <link rel="alternate" type="application/rss+xml" title="Board {$board->mInfo.title|escape} ATOM" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=atom&b={$smarty.request.b}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> - {elseif $smarty.request.t} + {elseif $thread && $smarty.request.t} <link rel="alternate" type="application/rss+xml" title="Topic {$thread->getTitle()|escape} RSS" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=rss20&t={$smarty.request.t}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> <link rel="alternate" type="application/rss+xml" title="Topic {$thread->getTitle()|escape} ATOM" href="{$smarty.const.BOARDS_PKG_URL}boards_rss.php?version=atom&t={$smarty.request.t}{if $gBitSystem->getConfig( 'rssfeed_httpauth' ) && $gBitUser->isRegistered()}&httpauth=y{/if}" /> {/if} |
