Changeset 22304 for extensions/rv_autocomplete/context_suggest.php
- Timestamp:
- Apr 20, 2013, 6:49:01 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_autocomplete/context_suggest.php
r22246 r22304 48 48 }); 49 49 50 // remove non filtering tags 51 $max = intval(0.9*count($context_image_ids)); 52 while( count($tags) && $tags[0]['counter'] >= $max) 53 array_shift($tags); 54 $tags = trigger_event('rvac_filter_context_tags', $tags); 55 50 56 $suggestions = array(); 51 57 foreach($tags as $tag) 52 58 { 53 if ($tag['counter']==count($context_image_ids))54 continue;55 59 $label = $tag['name']; 56 60 … … 97 101 })'; 98 102 103 header("Content-Type: application/javascript; charset=".get_pwg_charset()); 104 $expires = time() + 300; 105 header("Pragma:"); 106 header("Cache-control: private, max-age=300"); 107 header('Expires: '.gmdate('D, d M Y H:i:s', $expires).' GMT'); 108 99 109 echo $js; 100 110
Note: See TracChangeset
for help on using the changeset viewer.