$wikiAll = "<p>La page de wiki $n n'existe pas. "
. "Il te suffit de <a href='" . str_replace('.', '/', $n) . "?action=edit'>l'éditer</a></p>";
} else {
- $page->coreTpl('404.tpl');
+ global $platal;
+ $platal->error404();
}
}
if (!Env::v('action')) {
$url = '/' . str_replace('.', '/', $n) . '?action=rss';
if (S::logged()) {
- $url .= '&user=' . S::v('forlife') . '&hash=' . S::v('core_rss_hash');
+ if (S::user()) {
+ $url .= '&user=' . S::user()->login() . '&hash=' . S::v('core_rss_hash');
+ } else {
+ // TODO(vzanotti): trash that code when forlife support will be gone.
+ $url .= '&user=' . S::v('forlife') . '&hash=' . S::v('core_rss_hash');
+ }
}
$page->setRssLink($n, $url);
}