Skip to content
Permalink
Browse files

added log time to notification emails

  • Loading branch information...
following
following committed Apr 13, 2013
1 parent 3903a21 commit c30ed39c38d3d44c44b4feaeaa117a5249742b06
Showing with 11 additions and 3 deletions.
  1. +11 −3 htdocs/util/watchlist/runwatch.php
@@ -224,8 +224,12 @@ function process_owner_log($user_id, $log_id)
$logtext = strip_tags($logtext);
*/
}
$watchtext = mb_ereg_replace('{date}', date('d.m.Y', strtotime($rLog['logdate'])), $watchtext);
if (strpos($rLog['logdate'],'00:00:00') > 0)
$dateformat = 'd.m.Y';
else
$dateformat = 'd.m.Y, H:i';
$watchtext = mb_ereg_replace('{date}', date($dateformat, strtotime($rLog['logdate'])), $watchtext);
$watchtext = mb_ereg_replace('{wp_oc}', $rLog['wp_oc'], $watchtext);
$watchtext = mb_ereg_replace('{text}', $logtext, $watchtext);
$watchtext = mb_ereg_replace('{user}', $rLog['username'], $watchtext);
@@ -267,7 +271,11 @@ function process_log_watch($user_id, $log_id)
*/
}
$watchtext = mb_ereg_replace('{date}', date('d.m.Y', strtotime($rLog['logdate'])), $watchtext);
if (strpos($rLog['logdate'],'00:00:00') > 0)
$dateformat = 'd.m.Y';
else
$dateformat = 'd.m.Y, H:i';
$watchtext = mb_ereg_replace('{date}', date($dateformat, strtotime($rLog['logdate'])), $watchtext);
$watchtext = mb_ereg_replace('{wp_oc}', $rLog['wp_oc'], $watchtext);
$watchtext = mb_ereg_replace('{text}', $logtext, $watchtext);
$watchtext = mb_ereg_replace('{user}', $rLog['username'], $watchtext);

0 comments on commit c30ed39

Please sign in to comment.
You can’t perform that action at this time.