changed organization of static files
removed: item.auth item.auth_path added: item.file_path, item.file_fs, item.file_type now the path to a static file is a relative path added: thumbnails (not finished yet) fixed: db didn't correctly return the number of deleted items /DelItem() method/ git-svn-id: svn://ttmath.org/publicrep/winix/trunk@696 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -253,8 +253,9 @@ void dir_tab_link(Info & i)
|
||||
}
|
||||
|
||||
|
||||
static Item dir_last_default_item;
|
||||
static size_t dir_last_default_item_reqid = 0;
|
||||
static Item dir_last_default_item;
|
||||
static size_t dir_last_default_item_reqid = 0;
|
||||
static std::wstring dir_last_path;
|
||||
|
||||
|
||||
|
||||
@@ -264,7 +265,6 @@ void dir_last_default_item_init()
|
||||
return;
|
||||
|
||||
dir_last_default_item_reqid = request->id;
|
||||
|
||||
dir_last_default_item.Clear();
|
||||
|
||||
if( request->dir_tab.empty() )
|
||||
@@ -275,13 +275,9 @@ void dir_last_default_item_init()
|
||||
if( default_item == -1 )
|
||||
return;
|
||||
|
||||
std::vector<Item> item_tab; // !! tymczasowo, nie bedzie tego po zmianie interfejsu dla Db
|
||||
db->GetItem(item_tab, default_item);
|
||||
|
||||
if( item_tab.empty() )
|
||||
return;
|
||||
|
||||
dir_last_default_item = item_tab[0];
|
||||
// !! tutaj nie musimy odczytywac wszystkiego (contentu itp)
|
||||
if( db->GetItemById(default_item, dir_last_default_item) != WINIX_ERR_OK )
|
||||
dir_last_default_item.Clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -289,12 +285,10 @@ void dir_last_default_item_init()
|
||||
void dir_last_default_item_dir(Info & i)
|
||||
{
|
||||
dir_last_default_item_init();
|
||||
|
||||
std::wstring path;
|
||||
|
||||
|
||||
if( dir_last_default_item.parent_id != -1 )
|
||||
if( system->dirs.MakePath(dir_last_default_item.parent_id, path) )
|
||||
i.out << path;
|
||||
if( system->dirs.MakePath(dir_last_default_item.parent_id, dir_last_path) )
|
||||
i.out << dir_last_path;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user