| ... | ... |
@@ -22,7 +22,14 @@ |
| 22 | 22 |
// ---------------------------------------------------------------------- |
| 23 | 23 |
if(!defined("_CHARSET")) exit( );
|
| 24 | 24 |
|
| 25 |
-$output .= "<div id=\"pagetitle\">".($recentdays ? _RECENTSTORIES : _MOSTRECENT)." ".$pagelinks['rss']['link']."</div>"; |
|
| 25 |
+if (isset($pagelinks['rss'])) |
|
| 26 |
+{
|
|
| 27 |
+ $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT) . " " . $pagelinks['rss']['link'] . "</div>"; |
|
| 28 |
+} |
|
| 29 |
+else {
|
|
| 30 |
+ $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT); |
|
| 31 |
+} |
|
| 32 |
+ |
|
| 26 | 33 |
|
| 27 | 34 |
$update_date = time() - $recentdays * 24 * 60 * 60; |
| 28 | 35 |
$countquery .= ($recentdays ? " AND updated > '" . $update_date . "'" : ""); |
| ... | ... |
@@ -90,8 +90,11 @@ $tpl->assignGlobal("slogan", $slogan);
|
| 90 | 90 |
$tpl->assignGlobal("page_id", $current);
|
| 91 | 91 |
$tpl->assignGlobal("basedir", _BASEDIR);
|
| 92 | 92 |
$tpl->assignGlobal("skindir", $skindir);
|
| 93 |
-$tpl->assignGlobal("rss", "<a href='"._BASEDIR.$pagelinks['rss']['url']."'><img src='"._BASEDIR."images/xml.gif' alt='RSS' title = 'RSS' border='0'></a>");
|
|
| 94 |
-if(isset($pagelinks['rss'])) $tpl->assignGlobal("columns", $displaycolumns);
|
|
| 93 |
+if(isset($pagelinks['rss'])) {
|
|
| 94 |
+ $tpl->assignGlobal("rss", "<a href='" . _BASEDIR . $pagelinks['rss']['url'] . "'><img src='" . _BASEDIR . "images/xml.gif' alt='RSS' title = 'RSS' border='0'></a>");
|
|
| 95 |
+ if (isset($pagelinks['rss'])) $tpl->assignGlobal("columns", $displaycolumns);
|
|
| 96 |
+} |
|
| 97 |
+ |
|
| 95 | 98 |
if($action != "printable") {
|
| 96 | 99 |
$tpl->newBlock("footer");
|
| 97 | 100 |
$copy = dbquery("SELECT message_text FROM ".TABLEPREFIX."fanfiction_messages WHERE message_name = 'copyright' LIMIT 1");
|
| ... | ... |
@@ -111,4 +114,4 @@ foreach($blocks as $block=>$value) {
|
| 111 | 114 |
} |
| 112 | 115 |
|
| 113 | 116 |
$tpl->gotoBlock( "_ROOT" ); |
| 114 |
-?> |
|
| 115 | 117 |
\ No newline at end of file |
| 118 |
+?> |