Changeset 8909


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

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

Location:
extensions/ContactForm
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/admin/cf_config.php

    r8482 r8909  
    9090$cf = array(
    9191    'TITLE'     => $cf_plugin->get_title(),
    92     'VERSION'   => $cf_plugin->get_version(),
    9392    'F_ACTION'  => '',
    9493  );
  • 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
  • extensions/ContactForm/config.php

    r8908 r8909  
    6464$cf = array(
    6565    'TITLE'     => $cf_plugin->get_title(),
    66     'VERSION'   => $cf_plugin->get_version(),
    6766    'F_ACTION'  => '',
    6867  );
  • extensions/ContactForm/include/cf_common.inc.php

    r8908 r8909  
    77
    88// Version
    9 define('CF_VERSION',            '1.1.9');
    109define('CF_TITLE',              'cf_plugin_name');
    1110
     
    4443define('CF_CFG_DB_COMMENT',     'Configuration of plugin %s [%s]');
    4544define('CF_CFG_COMMENT',        'comment');
    46 define('CF_CFG_VERSION',        'version');
    4745
    4846define('CF_CFG_MENU_LINK',      'cf_menu_link');
  • extensions/ContactForm/main.inc.php

    r8905 r8909  
    22/*
    33Plugin Name: Contact Form
    4 Version: 1.1.9
     4Version: auto
    55Description: Add a "Contact" item in the Menu block to offer a contact form to users
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=304
  • extensions/ContactForm/maintain.inc.php

    r6547 r8909  
    1414  // Include language advices
    1515  load_language('plugin.lang', CF_PATH);
    16   if ($version != CF_VERSION) {
    17     array_push($errors, sprintf(l10n('cf_inconsistent_version'), $plugin_id));
    18     return;
    19   }
    2016  update_config($plugin_id, CF_CFG_DB_FACTORY);
    2117}
     
    3733  include_once(CF_PATH . 'include/cf_common.inc.php');
    3834  $clean = cf_clean_obsolete_files(CF_OBSOLETE);
    39   $cf_config_default[CF_CFG_VERSION] = CF_VERSION;
    4035  if (null != $db_comment) {
    4136    $cf_config_default[CF_CFG_COMMENT] = $db_comment;
Note: See TracChangeset for help on using the changeset viewer.