Changeset 3476


Ignore:
Timestamp:
06/30/09 21:23:19 (11 years ago)
Author:
Criss
Message:

Fix bug on plugin update

Location:
extensions/CommentEditor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/CommentEditor/include/ce_common.inc.php

    r3475 r3476  
    11<?php 
    2 /* $Id: ce_common.inc.php,v 1.13 2009/06/30 19:01:51 Criss Exp $ */ 
     2/* $Id: ce_common.inc.php,v 1.14 2009/06/30 19:22:06 Criss Exp $ */ 
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    44 
     
    88 
    99// Version 
    10 define('CE_VERSION',            '1.0.k'); 
     10define('CE_VERSION',            '1.0.l'); 
    1111 
    1212// Directories 
  • extensions/CommentEditor/main.inc.php

    r3475 r3476  
    11<?php 
    2 /* $Id: main.inc.php,v 1.18 2009/06/30 19:01:50 Criss Exp $ */ 
     2/* $Id: main.inc.php,v 1.19 2009/06/30 19:22:05 Criss Exp $ */ 
    33/* 
    44 Plugin Name: Comment Editor 
    5  Version: 1.0.k 
     5 Version: 1.0.l 
    66 Description: Allow to edit comment 
    77 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=296 
     
    1111 
    1212/** History ** 
     13  2009-06-30 1.0.l 
     14                    Fix bug on plugin update 
     15 
    1316  2009-06-30 1.0.k 
    1417                    Add toolbar trigger for edit template 
  • extensions/CommentEditor/maintain.inc.php

    r3475 r3476  
    1111 
    1212function plugin_install($plugin_id, $version, &$errors) { 
     13  update_config($plugin_id, $version, $errors); 
     14} 
     15 
     16function plugin_activate($plugin_id, $version, &$errors) { 
     17  update_config($plugin_id, $version, $errors); 
     18} 
     19 
     20function plugin_deactivate($plugin_id) { 
     21  // Nothing special 
     22} 
     23 
     24function plugin_uninstall($plugin_id) { 
     25  include_once(CE_PATH . 'include/ce_common.inc.php'); 
     26  $uninstall = CE_Config::uninstall($plugin_id); 
     27} 
     28 
     29function update_config($plugin_id, $version, &$errors) { 
    1330  include_once(CE_PATH . 'include/ce_common.inc.php'); 
    1431  // Include language advices 
     
    2239  $install = CE_Config::install($plugin_id, $ce_config_default); 
    2340} 
    24  
    25 function plugin_activate($plugin_id, $version, &$errors) { 
    26   // Nothing special 
    27 } 
    28  
    29 function plugin_deactivate($plugin_id) { 
    30   // Nothing special 
    31 } 
    32  
    33 function plugin_uninstall($plugin_id) { 
    34   include_once(CE_PATH . 'include/ce_common.inc.php'); 
    35   $uninstall = CE_Config::uninstall($plugin_id); 
    36 } 
    37  
    3841?> 
Note: See TracChangeset for help on using the changeset viewer.