Ignore:
Timestamp:
Mar 24, 2011, 6:47:53 PM (13 years ago)
Author:
Eric
Message:

Missing config table insertion on installation from scratch
Unnecessary code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/maintain.inc.php

    r9253 r9846  
    44{
    55  define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
    6 }
    7 if (!defined('UAM_ROOT'))
    8 {
    9   define('UAM_ROOT', dirname(__FILE__).'/');
    106}
    117
     
    5551VALUES ("UserAdvManager_Redir","0","UAM Redirections")
    5652  ;';
     53  pwg_query($q);
     54
     55// Set current plugin version in config table
     56  $plugin =  PluginInfos(UAM_PATH);
     57  $version = $plugin['version'];
     58  $q = '
     59INSERT INTO '.CONFIG_TABLE.' (param, value, comment)
     60VALUES ("UserAdvManager_Version","'.$version.'","UAM version check")
     61  ;';
     62 
    5763  pwg_query($q);
    5864
Note: See TracChangeset for help on using the changeset viewer.