Changeset 8918


Ignore:
Timestamp:
Jan 26, 2011, 5:27:34 PM (10 years ago)
Author:
cljosse
Message:

[edit_gmaps] compatibility with piwigo 2.2

Location:
extensions/edit_gmaps
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/admin/admin_edit.php

    r8586 r8918  
    44load_language('lang', dirname(__FILE__).'/../');
    55$admin_url = PHPWG_ROOT_PATH.'admin.php';
     6
    67
    78if ( !isset($_GET['cat']) )   $_GET['cat'] = 'caddie';
     
    6162                        WHERE id IN ('.implode(',',$collection).')';
    6263                  pwg_query($update_query);
    63                   rvm_invalidate_cache();
     64                  clm_invalidate_cache();
    6465                }
    6566          }
     
    188189                'path_js' => $path_js,
    189190            'VERSION'=> $version,
     191            'EDIT_RV_ROOT_ABS' => dirname(__FILE__).'/',
    190192              )
    191193  );
  • extensions/edit_gmaps/admin/admin_edit.tpl

    r8586 r8918  
    11{html_head}
    22{* $Id: admin_edit.tpl  2011-01-03   *}
    3 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" }
    4 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
    5 
    6 {known_script id="jquery.ui"      src=$ROOT_URL|@cat:"themes/default/js/ui/ui.core.js"}
    7 {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.resizable.js"}
    8 {known_script id="EDIT_RV_script" src=$EDIT_RV_ROOT|@cat:"js/JScript.js"}
    9 {known_script id="fieldset" src=$EDIT_RV_ROOT|@cat:"js/fieldset.js"}
     3{if PHPWG_VERSION < 2.2 } {include
     4file=$EDIT_RV_ROOT_ABS|@cat:'header_2_1.tpl'} {else} {include file= $EDIT_RV_ROOT_ABS|@cat:'header_2_2.tpl'}
     5{/if}
     6
     7
    108
    119 {assign var='visible' value = true }
  • extensions/edit_gmaps/main.inc.php

    r8586 r8918  
    22/*
    33Plugin Name: Edit Maps&Earth
    4 Version: 2.1.3
     4Version: 2.1.4
    55Description:  Editor for rv gmaps
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330
     
    1616function ed_rvm_plugin_admin_menu($menu)
    1717{
    18 //      include_once( dirname(__FILE__) .'/include/functions.php');
    19         add_event_handler('invalidate_user_cache', 'rvm_invalidate_cache' );
     18        include_once( dirname(__FILE__) .'/include/functions.php');
     19        add_event_handler('invalidate_user_cache', 'clm_invalidate_cache' );
    2020        array_push($menu,
    2121                        array(                 
  • extensions/edit_gmaps/maintain.inc.php

    r4548 r8918  
    1414{
    1515 
    16   rvm_invalidate_cache();
     16  clm_invalidate_cache();
    1717}
    1818
Note: See TracChangeset for help on using the changeset viewer.