Ignore:
Timestamp:
Jun 30, 2009, 11:54:11 PM (15 years ago)
Author:
Criss
Message:

Fix another bug on plugin update...

Location:
extensions/CommentEditor
Files:
3 edited

Legend:

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

    r3480 r3481  
    11<?php
    2 /* $Id: ce_common.inc.php,v 1.15 2009/06/30 21:36:20 Criss Exp $ */
     2/* $Id: ce_common.inc.php,v 1.16 2009/06/30 21:53:18 Criss Exp $ */
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
     
    88
    99// Version
    10 define('CE_VERSION',            '1.0.l');
     10define('CE_VERSION',            '1.0.m');
    1111
    1212// Directories
  • extensions/CommentEditor/main.inc.php

    r3476 r3481  
    11<?php
    2 /* $Id: main.inc.php,v 1.19 2009/06/30 19:22:05 Criss Exp $ */
     2/* $Id: main.inc.php,v 1.20 2009/06/30 21:53:17 Criss Exp $ */
    33/*
    44 Plugin Name: Comment Editor
    5  Version: 1.0.l
     5 Version: 1.0.m
    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.m
     14                    Fix another bug on plugin update...
     15
    1316  2009-06-30 1.0.l
    1417                    Fix bug on plugin update
  • extensions/CommentEditor/maintain.inc.php

    r3480 r3481  
    1818    return;
    1919  }
    20   $ce_config_default[CE_CFG_COMMENT] = CE_CFG_DB_FACTORY;
    21   update_config($plugin_id, $version, $errors);
     20  update_config($plugin_id, CE_CFG_DB_FACTORY);
    2221}
    2322
    2423function plugin_activate($plugin_id, $version, &$errors) {
    25   update_config($plugin_id, $version, $errors);
     24  update_config($plugin_id);
    2625}
    2726
     
    3534}
    3635
    37 function update_config($plugin_id, $version, &$errors) {
     36function update_config($plugin_id, $db_comment=null) {
    3837  include_once(CE_PATH . 'include/ce_common.inc.php');
    3938  $clean = ce_clean_obsolete_files(CE_OBSOLETE);
    4039  $ce_config_default[CE_CFG_VERSION] = CE_VERSION;
     40  if (null != $db_comment) {
     41    $ce_config_default[CE_CFG_COMMENT] = $db_comment;
     42  }
    4143  $install = CE_Config::install($plugin_id, $ce_config_default);
    4244}
Note: See TracChangeset for help on using the changeset viewer.