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

Fix bug on plugin update

File:
1 edited

Legend:

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

    r3475 r3480  
    11<?php
    2 /* $Id: ce_plugin.class.php,v 1.13 2009/06/30 19:01:50 Criss Exp $ */
     2/* $Id: ce_plugin.class.php,v 1.14 2009/06/30 21:36:20 Criss Exp $ */
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
     
    2020    $this->config = $config;
    2121    if (null != $this->config) {
     22      $this->config->setDBKey(CE_CFG_DB_KEY);
    2223      $this->config->loadConfig();
     24      $this->config->setValue(CE_CFG_COMMENT, CE_CFG_DB_COMMENT);
    2325    }
    2426  }
     
    118120
    119121  function getVersion() {
    120     if (isset($this->config->config_values[CE_CFG_VERSION])) {
    121       return $this->config->config_values[CE_CFG_VERSION];
    122     }
    123     return CE_VERSION;
     122    return $this->config->getVersion();
    124123  }
    125124
Note: See TracChangeset for help on using the changeset viewer.