Changeset 28597
- Timestamp:
- Jun 2, 2014, 9:39:07 PM (10 years ago)
- Location:
- extensions/rv_autocomplete
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_autocomplete/admin/exclude.php
r27564 r28597 43 43 $tags_select = array(); 44 44 foreach($tags as $tag) 45 $tags_select[ $tag['id'] ] = trigger_ event('render_tag_name', $tag['name']) . ' '.$tag['counter'];45 $tags_select[ $tag['id'] ] = trigger_change('render_tag_name', $tag['name']) . ' '.$tag['counter']; 46 46 47 47 $template->assign( array( -
extensions/rv_autocomplete/admin/functions.inc.php
r28197 r28597 181 181 function rvac_save_variant_rules($rules, $callback = null) 182 182 { 183 global $conf ;183 global $conf, $persistent_cache; 184 184 $file=PHPWG_ROOT_PATH.$conf['data_location'].'plugins/autocomplete_variants.dat'; 185 185 $save = serialize($rules); … … 250 250 file_put_contents($file, $save); 251 251 } 252 $persistent_cache->purge(true); 252 253 $file=PHPWG_ROOT_PATH.$conf['data_location'].'tmp/autocomplete_variants.txt'; 253 254 if ($fh = @fopen($file, 'w')) -
extensions/rv_autocomplete/functions.inc.php
r28161 r28597 114 114 115 115 array_walk($items, function(&$obj) { 116 $alt_names = trigger_ event('get_tag_alt_names', array(), $obj['name']);116 $alt_names = trigger_change('get_tag_alt_names', array(), $obj['name']); 117 117 118 118 if (empty($alt_names)) … … 132 132 $obj['q_names'] = $alt_names; 133 133 foreach ($obj['q_names'] as &$q) 134 {135 134 $q = rvac_normalize($q); 136 }137 135 } 138 136 else … … 149 147 $q = substr($name, 0, $pos); 150 148 if (-1 === $obj['url'] && 'default'==$l) 151 {152 149 $obj['url'] = 'q='.$q; 153 } 150 154 151 $q = rvac_normalize($q); 155 152 $name = substr_replace($name, '', $pos, 1); … … 253 250 254 251 if (isset($amap[$in_t])) 255 {256 252 $all = array_merge($all, $amap[$in_t]); 257 }258 253 } 259 254
Note: See TracChangeset
for help on using the changeset viewer.