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

Fix another bug on plugin update...

File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.