Changeset 3482


Ignore:
Timestamp:
Jul 1, 2009, 10:07:41 AM (12 years ago)
Author:
Criss
Message:

Fix another bug on plugin update...

Location:
extensions/CommentEditor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/CommentEditor/classes/ce_config.class.php

    r3480 r3482  
    8484      return false;
    8585    }
     86
     87    if (!isset($this->config_values[CE_CFG_COMMENT])) {
     88      $this->setValue(CE_CFG_COMMENT, CE_CFG_DB_COMMENT);
     89    }
    8690    $db_comment = sprintf($this->config_values[CE_CFG_COMMENT],
    8791                          $this->db_key,
     
    112116    if (isset($default_config[CE_CFG_VERSION])) {
    113117      // Override version
    114       $config->config_values[CE_CFG_VERSION] = $default_config[CE_CFG_VERSION];
     118      $config->setValue(CE_CFG_VERSION, $default_config[CE_CFG_VERSION]);
    115119    }
    116120    if (isset($default_config[CE_CFG_COMMENT])) {
    117121      // Override comment
    118       $config->config_values[CE_CFG_COMMENT] = $default_config[CE_CFG_COMMENT];
     122      $config->setValue(CE_CFG_COMMENT, $default_config[CE_CFG_COMMENT]);
    119123    }
    120124    $result = $config->saveConfig();
  • extensions/CommentEditor/include/ce_common.inc.php

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

    r3481 r3482  
    11<?php
    2 /* $Id: main.inc.php,v 1.20 2009/06/30 21:53:17 Criss Exp $ */
     2/* $Id: main.inc.php,v 1.21 2009/07/01 08:06:01 Criss Exp $ */
    33/*
    44 Plugin Name: Comment Editor
    5  Version: 1.0.m
     5 Version: 1.0.n
    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.n
     14                    Fix another bug on plugin update...
     15
    1316  2009-06-30 1.0.m
    1417                    Fix another bug on plugin update...
Note: See TracChangeset for help on using the changeset viewer.