Changeset 1311 in ExiteCMS for trunk/includes/theme_functions.php


Ignore:
Timestamp:
02/27/08 11:25:49 (4 years ago)
Author:
hverton
Message:

added the new thread_first_read field to all posts unread queries, to get a more accurante unread posts number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/theme_functions.php

    r1284 r1311  
    463463            $result = dbquery("UPDATE ".$db_prefix."users SET user_status = 1, user_ban_reason = '', user_ban_expire = '".time()."' WHERE user_bad_email > 0 AND user_bad_email < '".(time() - $day * 90)."'"); 
    464464        } 
    465         // read threads indicators: use the defined threshold (available since v7.0 rev.1190) 
    466         if ($settings['revision'] >= 1190) { 
     465        // read threads indicators: use the defined threshold (available since v7.0 rev.1193) 
     466        if ($settings['revision'] >= 1193) { 
    467467            $result = dbquery("DELETE FROM ".$db_prefix."threads_read WHERE thread_last_read < '".$settings['unread_threshold']."'", false); 
    468468        } 
Note: See TracChangeset for help on using the changeset viewer.