Ignore:
Timestamp:
04/15/13 06:08:30 (7 years ago)
Author:
rvelices
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_autocomplete/main.inc.php

    r22201 r22214  
    11<?php /* 
    22Plugin Name: RV autocomplete 
    3 Version: 0 
     3Version: 0.beta 
    44Description: Autocompletes the quick search with albums, tags or custom suggestions 
     5Plugin URI: http://piwigo.org/ext/extension_view.php?eid=694 
    56Author: rvelices 
    67Author URI: http://www.modusoptimus.com/ 
     
    1415 
    1516function rvac_get_data_file() { 
    16   global $user,$conf; 
    17   $f = PWG_COMBINED_DIR.'acds-'; 
    18   $f .= $conf['rvac_version']; 
    19   $keys = array( $user['language'], $user['nb_total_images'] ); 
    20   $f .= '-'.base_convert(crc32( implode('-', $keys ) ), 10, 36); 
    21   $f .= '.js'; 
    22   return $f; 
     17        global $user,$conf; 
     18        $f = PWG_COMBINED_DIR.'acds-'; 
     19        $f .= $conf['rvac_version']; 
     20        $keys = array( $user['language'], $user['nb_total_images'], $user['level'], strlen($user['forbidden_categories']) ); 
     21        $f .= '-'.base_convert(crc32( implode('-', $keys ) ), 10, 36); 
     22        $f .= '.js'; 
     23        return $f; 
    2324} 
    2425 
     
    4142  if ($mb_arr[0]->get_id() != 'menubar' ) 
    4243    return; 
    43   //if (!is_admin()) return; 
     44 
    4445  global $template; 
    4546 
Note: See TracChangeset for help on using the changeset viewer.