- Timestamp:
- Feb 23, 2006, 10:38:00 PM (18 years ago)
- Location:
- branches/branch-1_5/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_5/include/category_calendar.inc.php
r1005 r1054 188 188 FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id 189 189 '.$page['where'].' 190 AND '.$conf['calendar_datefield'].' = \''.$page['calendar_date'].'\' 190 AND DATE_FORMAT('.$conf['calendar_datefield'].', \'%Y-%c-%e\')' 191 .' = \''.$page['calendar_date'].'\' 191 192 GROUP BY category_id 192 193 ;'; … … 338 339 FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id 339 340 '.$page['where'].' 340 AND '.$conf['calendar_datefield'].' = \''.$calendar_day.'\' 341 AND DATE_FORMAT('.$conf['calendar_datefield'].', \'%Y-%m-%d\')' 342 .' = \''.$calendar_day.'\' 341 343 ORDER BY RAND() 342 344 LIMIT 0,1 … … 406 408 FROM '.IMAGES_TABLE.', '.IMAGE_CATEGORY_TABLE.' 407 409 '.$page['where'].' 408 AND '.$conf['calendar_datefield'].' = \''.$page['calendar_date'].'\''; 410 AND DATE_FORMAT('.$conf['calendar_datefield'].', \'%Y-%c-%e\')' 411 .' = \''.$page['calendar_date'].'\''; 409 412 if ($calendar_category != 0) 410 413 { -
branches/branch-1_5/include/functions_category.inc.php
r1005 r1054 488 488 if (isset($search['fields'][$key])) 489 489 { 490 $local_clause = $datefield."= '";490 $local_clause = 'DATE_FORMAT('.$datefield.", '%Y-%m-%d') = '"; 491 491 $local_clause.= str_replace('.', '-', 492 492 $search['fields'][$key]['words'][0]);
Note: See TracChangeset
for help on using the changeset viewer.