small changes in template winix function
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@637 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -86,6 +86,7 @@ void Request::Clear()
|
||||
item_tab.clear();
|
||||
item.Clear();
|
||||
dir_tab.clear();
|
||||
last_item = 0;
|
||||
is_item = false;
|
||||
function = 0;
|
||||
param_tab.clear();
|
||||
|
@@ -107,9 +107,8 @@ struct Request
|
||||
// send as attachment (causing header: content-disposition: attachment)
|
||||
bool send_as_attachment;
|
||||
|
||||
// !! moze dolozyc pole Item * last_item
|
||||
// i ono bedzie wskazywalo na albo item (jesli jest) albo na ostatni katalog
|
||||
// ?
|
||||
// this is a pointer either to the item (if exists) or to the last directory
|
||||
Item * last_item;
|
||||
|
||||
|
||||
Request();
|
||||
|
@@ -128,17 +128,15 @@ Item * pdir;
|
||||
|
||||
void System::RedirectToLastDir()
|
||||
{
|
||||
// !! dac sprawdzenie czy istnieje
|
||||
RedirectTo( *request->dir_tab.back() );
|
||||
if( !request->dir_tab.empty() )
|
||||
RedirectTo( *request->dir_tab.back() );
|
||||
}
|
||||
|
||||
|
||||
void System::RedirectToLastItem()
|
||||
{
|
||||
if( request->is_item )
|
||||
RedirectTo(request->item);
|
||||
else
|
||||
RedirectTo( *request->dir_tab.back() );// !! dac sprawdzenie czy istnieje
|
||||
if( request->last_item )
|
||||
RedirectTo( *request->last_item );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user