Added date stamp to karma log.
This commit is contained in:
parent
ffdce37a6f
commit
7ad232ef71
2 changed files with 4 additions and 20 deletions
|
|
@ -783,25 +783,6 @@ insert into international values (601,'WebGUI',1,'International ID');
|
|||
insert into international values (602,'WebGUI',1,'Edit Help');
|
||||
insert into international values (603,'WebGUI',1,'Action');
|
||||
insert into international values (604,'WebGUI',1,'Object');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE MailForm (
|
||||
wobjectId int(11) NOT NULL default '0',
|
||||
width int(11) NOT NULL default '0',
|
||||
|
|
@ -884,3 +865,6 @@ INSERT INTO help VALUES (2, 'MailForm', 1, 'Add/Edit', 'Mail Form Fields', 'You
|
|||
|
||||
INSERT INTO helpSeeAlso VALUES (13, 2, 'MailForm');
|
||||
INSERT INTO helpSeeAlso VALUES (14, 1, 'MailForm');
|
||||
alter table karmaLog add column dateModified int not null default 1026097656;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ sub identifier {
|
|||
sub karma {
|
||||
if (defined $_[1] && defined $_[2] && defined $_[3]) {
|
||||
WebGUI::SQL->write("update users set karma=karma+$_[1] where userId=".$_[0]->userId);
|
||||
WebGUI::SQL->write("insert into karmaLog values (".$_[0]->userId.",$_[1],".quote($_[2]).",".quote($_[3]).")");
|
||||
WebGUI::SQL->write("insert into karmaLog values (".$_[0]->userId.",$_[1],".quote($_[2]).",".quote($_[3]).",".time().")");
|
||||
}
|
||||
return $_[0]->{_user}{karma};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue