winix/templates/thread.cpp

33 lines
519 B
C++
Executable File

/*
* This file is a part of CMSLU -- Content Management System like Unix
* and is not publicly distributed
*
* Copyright (c) 2008, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
namespace TemplatesFunctions
{
void thread_subject(Info & i)
{
// !! jesli bedzie podzial na strony (np page:2) to bedzie trzeba w inny sposob ustalac tytul dla calego watku
if( !request.item_table.empty() )
HtmlEscape(i.out, request.item_table[0].subject);
}
} // namespace TemplatesFunctions