changed: added Cur structure
we have there two pointers: Request * request; Session * session; these are the current request and the current session the session GC was moved to SessionManager (was in SessionContainer) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@708 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -36,10 +36,10 @@ void template_set_def()
|
||||
temp_def = (size_t)-1; // none
|
||||
const std::wstring * html_file;
|
||||
|
||||
if( request->is_item )
|
||||
html_file = &request->item.html_template;
|
||||
if( cur->request->is_item )
|
||||
html_file = &cur->request->item.html_template;
|
||||
else
|
||||
html_file = &request->dir_tab.back()->html_template;
|
||||
html_file = &cur->request->dir_tab.back()->html_template;
|
||||
|
||||
|
||||
if( html_file->empty() )
|
||||
@@ -82,9 +82,9 @@ void template_init()
|
||||
|
||||
void template_tab(Info & i)
|
||||
{
|
||||
if( request->id != temp_req_id )
|
||||
if( cur->request->id != temp_req_id )
|
||||
{
|
||||
temp_req_id = request->id;
|
||||
temp_req_id = cur->request->id;
|
||||
template_init();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user