Use time() instead of mktime() preventing a 'PHP Strict Standards' notice
This commit is contained in:
parent
837816d6f2
commit
297fcb68a4
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class ContributionScores extends SpecialPage
|
|||
"FROM $userTable userTable JOIN $revTable revTable ON (userTable.user_id=revTable.rev_user) ";
|
||||
|
||||
if ( $days > 0 ) {
|
||||
$date = mktime() - (60*60*24*$days);
|
||||
$date = time() - (60*60*24*$days);
|
||||
$dateString = $dbr->timestamp($date);
|
||||
$sql .= "WHERE rev_timestamp > '$dateString' ";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue