Ignore:
Timestamp:
Jan 26, 2011, 11:18:11 AM (13 years ago)
Author:
Gotcha
Message:

To remove the reference to the classification of version
bug:2132

Location:
extensions/ContactForm/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/classes/cf_config.class.php

    r6547 r8909  
    3333  function set_value($key, $value) {
    3434      $this->config_values[$key] = $value;
    35   }
    36 
    37   function get_version() {
    38     if (isset($this->config_values[CF_CFG_VERSION])) {
    39       return $this->config_values[CF_CFG_VERSION];
    40     }
    41     return CF_VERSION;
    4235  }
    4336
     
    120113    }
    121114    $db_comment = sprintf($this->config_values[CF_CFG_COMMENT],
    122                           $this->db_key,
    123                           $this->get_version());
     115                          $this->db_key);
    124116    $query = '
    125117        REPLACE INTO '.CONFIG_TABLE.'
     
    146138    $config->load_config();
    147139    $default_config = CF_Config::$default_config;
    148     if (isset($default_config[CF_CFG_VERSION])) {
    149       // Override version
    150       $config->set_value(CF_CFG_VERSION, $default_config[CF_CFG_VERSION]);
    151     }
    152140    if (isset($default_config[CF_CFG_COMMENT])) {
    153141      // Override comment
  • extensions/ContactForm/classes/cf_plugin.class.php

    r8887 r8909  
    151151  }
    152152
    153   function get_version() {
    154     return $this->config->get_version();
    155   }
    156  
    157153  function get_title() {
    158154    // Include language advices
Note: See TracChangeset for help on using the changeset viewer.