fixing timewithin login
This commit is contained in:
@@ -72,7 +72,7 @@ class block_blog_tags extends block_base {
|
||||
|
||||
/// Get a list of tags
|
||||
|
||||
$timewithin = $this->config->timewithin * 24 * 60 * 60; /// convert to seconds
|
||||
$timewithin = time() - $this->config->timewithin * 24 * 60 * 60; /// convert to seconds
|
||||
|
||||
$sql = 'SELECT t.id, t.tagtype, t.rawname as name, COUNT(DISTINCT ti.id) as ct ';
|
||||
$sql .= "FROM {$CFG->prefix}tag t, {$CFG->prefix}tag_instance ti, {$CFG->prefix}post p ";
|
||||
|
||||
Reference in New Issue
Block a user