Switched to compatible $dbr->timestamp() call rather than silly date() call for timestamps - should support Postgres now.
This commit is contained in:
parent
43b2ca821a
commit
da90007ce8
2 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,7 @@ $wgExtensionCredits['specialpage'][] = array(
|
|||
'url'=>'http://www.mediawiki.org/wiki/Extension:Contribution_Scores',
|
||||
'author'=>'Tim Laqua, t.laqua at gmail dot com',
|
||||
'description'=>'Polls Wiki Database for highest user contribution volume.',
|
||||
'version'=>'1.2'
|
||||
'version'=>'1.3'
|
||||
);
|
||||
|
||||
$wgAutoloadClasses['ContributionScores'] = dirname(__FILE__) . '/ContributionScores_body.php';
|
||||
|
|
|
@ -24,8 +24,7 @@ class ContributionScores extends SpecialPage
|
|||
|
||||
if ( $days > 0 ) {
|
||||
$date = mktime() - (60*60*24*$days);
|
||||
$dateString = date("Ymd",$date)."000000";
|
||||
|
||||
$dateString = $dbr->timestamp($date);
|
||||
$sql .= "WHERE rev_timestamp > '$dateString' ";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue