aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 1bd3abd07..841c86f74 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -345,9 +345,9 @@ function pwg_log( $file, $category, $picture = '' )
if ( $conf['log'] )
{
- $query = 'insert into '.PREFIX_TABLE.'history';
+ $query = 'insert into '.HISTORY_TABLE;
$query.= ' (date,login,IP,file,category,picture) values';
- $query.= " (".time().", '".$user['username']."'";
+ $query.= " (NOW(), '".$user['username']."'";
$query.= ",'".$_SERVER['REMOTE_ADDR']."'";
$query.= ",'".$file."','".$category."','".$picture."');";
mysql_query( $query );