Changeset 1816

Show
Ignore:
Timestamp:
02/14/07 06:45:20 (6 years ago)
Author:
rvelices
Message:

- fill #searches.last_seen column
- small correction on my previous commit (functions_tag.inc.php)
- web service tags.getImages correction

Location:
trunk
Files:
4 modified

Legend:

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

    r1815 r1816  
    259259  { 
    260260    $query .= ' 
     261  ORDER BY counter DESC 
    261262  LIMIT 0,'.$max_tags; 
    262263  } 
  • trunk/include/ws_functions.inc.php

    r1815 r1816  
    657657function ws_tags_getList($params, &$service) 
    658658{ 
    659   global $user; 
    660659  $tags = get_available_tags(); 
    661660  if ($params['sort_by_counter']) 
     
    688687{ 
    689688  @include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php'); 
    690   global $user, $conf; 
     689  global $conf; 
    691690 
    692691  // first build all the tag_ids we are interested in 
     
    705704      or 
    706705        in_array($tag['url_name'], $params['tag_url_name']) 
     706      or 
     707        in_array($tag['id'], $params['tag_id']) 
    707708       ) 
    708709    { 
     
    711712  } 
    712713  unset($tags); 
    713  
    714   foreach( $params['tag_id'] as $tag_id ) 
    715   { 
    716     if ( (int)$tag_id > 0 ) 
    717     { 
    718       $tag_ids[] = $tag_id; 
    719     } 
    720   } 
    721714 
    722715  $tag_ids = array_unique( $tag_ids ); 
  • trunk/qsearch.php

    r1537 r1816  
    3838$query =' 
    3939INSERT INTO '.SEARCH_TABLE.' 
    40   (rules) 
     40  (rules, last_seen) 
    4141  VALUES 
    42   (\''.serialize($search).'\') 
     42  (\''.serialize($search).'\', NOW() ) 
    4343;'; 
    4444pwg_query($query); 
  • trunk/search.php

    r1727 r1816  
    135135    $query =' 
    136136INSERT INTO '.SEARCH_TABLE.' 
    137   (rules) 
     137  (rules, last_seen) 
    138138  VALUES 
    139   (\''.serialize($search).'\') 
     139  (\''.serialize($search).'\', NOW()) 
    140140;'; 
    141141    pwg_query($query);