Ignore:
Timestamp:
Nov 25, 2009, 8:02:57 PM (14 years ago)
Author:
nikrou
Message:

Feature 1255: modification in sql queries

  • manage random function
  • manage regex syntax
  • manage quote (single instead of double)
  • manage interval
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/filter.inc.php

    r3282 r4367  
    9797    }
    9898  $query.= '
    99     date_available >= SUBDATE(
    100       CURRENT_DATE,INTERVAL '.$filter['recent_period'].' DAY)';
     99    date_available >= '.pwg_db_get_recent_period_expression($filter['recent_period']);
    101100
    102101    $filter['visible_images'] = implode(',', array_from_query($query, 'image_id'));
Note: See TracChangeset for help on using the changeset viewer.