1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 23:00:51 +03:00
This commit is contained in:
Mzhelskiy Maxim 2014-03-08 19:56:59 +07:00
parent ef592e10bf
commit df1473b5c5

View file

@ -83,6 +83,12 @@ class ActionTag extends Action {
$this->Viewer_AddHtmlTitle($this->Lang_Get('tag_title'));
$this->Viewer_AddHtmlTitle($sTag);
$this->Viewer_SetHtmlRssAlternate(Router::GetPath('rss').'tag/'.$sTag.'/',$sTag);
/**
* Если не удалось найти топиков, то ыставляем 404 заголовок
*/
if (!count($aTopics)) {
header("HTTP/1.1 404 Not Found");
}
/**
* Устанавливаем шаблон вывода
*/