some work on dependency injection
git-svn-id: svn://ttmath.org/publicrep/winix/branches/0.7.x@1147 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "core/plugin.h"
|
||||
#include "createticket.h"
|
||||
#include "functions/functions.h"
|
||||
#include "sessiondata.h"
|
||||
@@ -100,7 +99,7 @@ void CreateTicket::AddTicket(Ticket & ticket, Item & item)
|
||||
system->notify.ItemChanged(notify_msg);
|
||||
|
||||
// sending a message
|
||||
plugin.Call(WINIX_PL_TICKET_ADDED_NEW, &ticket, &item);
|
||||
plugin->Call(WINIX_PL_TICKET_ADDED_NEW, &ticket, &item);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +115,7 @@ void CreateTicket::Submit(Ticket & ticket, Item & item)
|
||||
item.privileges = system->NewFilePrivileges();
|
||||
item.parent_id = cur->request->dir_tab.back()->id;
|
||||
|
||||
plugin.Call(WINIX_PL_TICKET_PREPARE_TO_ADD_TICKET, &item, &ticket);
|
||||
plugin->Call(WINIX_PL_TICKET_PREPARE_TO_ADD_TICKET, &item, &ticket);
|
||||
|
||||
// adding without notificating
|
||||
cur->request->status = system->AddFile(item, false);
|
||||
|
Reference in New Issue
Block a user