added: now plugin ticket uses a new horizontal table (plugins.ticket)

columns: dir_id, param, value
we are able to build complicated tickets 



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@664 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-10-19 00:31:20 +00:00
parent 33057acd62
commit 1b053c03ba
53 changed files with 1680 additions and 1902 deletions

View File

@@ -11,7 +11,7 @@
#include "misc.h"
#include "error.h"
#include "notify.h"
#include "templates/templates.h"
@@ -485,7 +485,7 @@ bool System::MakePath(Item & item, bool create_dir)
Error System::AddFile(Item & item)
Error System::AddFile(Item & item, bool notify)
{
if( item.type == Item::dir )
return WINIX_ERR_FILE_EXPECTED;
@@ -497,7 +497,8 @@ Error System::AddFile(Item & item)
log << log2 << "System: added a new file, url: " << item.url << ", id: " << item.id
<< ", parent_id: " << item.parent_id << logend;
request->notify_code |= WINIX_NOTIFY_ITEM_ADD;
if( notify )
request->notify_code |= WINIX_NOTIFY_ITEM_ADD;
}
return status;
@@ -506,7 +507,7 @@ return status;
Error System::EditFile(Item & item, bool with_url)
Error System::EditFile(Item & item, bool with_url, bool notify)
{
if( item.type == Item::dir )
return WINIX_ERR_FILE_EXPECTED;
@@ -521,13 +522,14 @@ Error System::EditFile(Item & item, bool with_url)
if( status == WINIX_ERR_OK )
{
TemplatesFunctions::pattern_cacher.UpdatePattern(item);
log << log2 << "System: modified an item" << logend;
request->notify_code |= WINIX_NOTIFY_ITEM_EDIT;
if( notify )
request->notify_code |= WINIX_NOTIFY_ITEM_EDIT;
}
return status;
}