Ignore:
Timestamp:
Sep 20, 2010, 12:42:58 AM (14 years ago)
Author:
grum
Message:

Migration from version 3.1.0 to 3.2.0 implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/main.inc.php

    r6948 r6975  
    104104
    105105include_once('gpc_version.inc.php'); // => Don't forget to update this file !!
     106include_once(GPC_PATH.'classes/GPCCore.class.inc.php');
    106107
    107108global $prefixeTable;
     109
     110
     111
     112$config=Array();
     113GPCCore::loadConfig('gpc', $config);
     114
     115if(!isset($config['installed'])) $config['installed']='03.01.00';
     116if($config['installed']!=GPC_VERSION2)
     117{
     118  /* the plugin was updated without being deactivated
     119   * deactivate + activate the plugin to process the database upgrade
     120   */
     121  include(GPC_PATH."gpc_install.class.inc.php");
     122  $gpc=new GPC_Install($prefixeTable, __FILE__);
     123  $gpc->deactivate();
     124  $gpc->activate();
     125}
     126
    108127
    109128if(defined('IN_ADMIN'))
Note: See TracChangeset for help on using the changeset viewer.