Changeset 169 for dev/common

Show
Ignore:
Timestamp:
01/03/07 09:36:37 (15 years ago)
Author:
Mitchman
Message:

smarty rss_feed variable is set in the page class so it can be accessed in the header of the index.tpl template. This makes it possible to add a <link rel="alternative"...> header making it possible for browsers to autodetect when the rss feed is available.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.page.php

    r134 r169  
    5858        if (!$this->igb_) 
    5959        { 
     60            if (strpos($config->getConfig('mods_active'), 'rss_feed') !== false) 
     61            { 
     62                $smarty->assign('rss_feed', 1); 
     63            } 
    6064            if (MAIN_SITE) 
    6165            {