Changeset 9846


Ignore:
Timestamp:
03/24/11 18:47:53 (9 years ago)
Author:
Eric
Message:

Missing config table insertion on installation from scratch
Unnecessary code cleanup

Location:
extensions/NBC_UserAdvManager/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/include/upgradedb.inc.php

    r9266 r9846  
    1111{ 
    1212  define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 
    13 } 
    14 if (!defined('UAM_ROOT')) 
    15 { 
    16   define('UAM_ROOT', dirname(__FILE__).'/'); 
    1713} 
    1814 
  • extensions/NBC_UserAdvManager/trunk/main.inc.php

    r9295 r9846  
    22/* 
    33Plugin Name: UserAdvManager 
    4 Version: 2.20.0-RC 
     4Version: 2.20.0-RC2 
    55Description: Renforcer la gestion des utilisateurs - Enforce users management 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 
     
    1717 
    1818if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    19 if (!defined('UAM_DIR')) define('UAM_DIR' , basename(dirname(__FILE__))); 
    2019if (!defined('UAM_PATH')) define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 
    2120 
  • 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.