Changeset 10707


Ignore:
Timestamp:
Apr 30, 2011, 9:13:57 PM (13 years ago)
Author:
Eric
Message:

r10706 merged from trunk to branch 2.20

Location:
extensions/UserAdvManager/branches/2.20
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/branches/2.20/changelog.txt.php

    r10679 r10707  
    245245
    246246-- 2.20.5 : Bug 2287 fixed - The UAM block for PWG_Stuffs is correctly displayed (stuffs_module directory was missing)
     247
     248-- 2.20.6 : Improve database update process
     249            Bug 2289 fixed - "Password in clear text in the information email" was working in a reverse logic
    247250*/
    248251?>
  • extensions/UserAdvManager/branches/2.20/include/functions.inc.php

    r10392 r10707  
    858858  if (isset($conf_UAM[0]) and $conf_UAM[0] == 'true')
    859859  {
    860     if (isset($conf_UAM[35]) and $conf_UAM[35] == 'false') // Allow display of clear password in email
     860    if (isset($conf_UAM[35]) and $conf_UAM[35] == 'true') // Allow display of clear password in email
    861861    {
    862862      $infos1 = array(
  • extensions/UserAdvManager/branches/2.20/include/upgradedb.inc.php

    r10392 r10707  
    3131  $plugin =  PluginInfos(UAM_PATH);
    3232  $version = $plugin['version'];
    33  
    34   // Update plugin version
     33
     34  // Update plugin version in #_config table
    3535  $query = '
    3636UPDATE '.CONFIG_TABLE.'
     
    4141
    4242  pwg_query($query);
     43
     44
     45// Check #_plugin table consistency
     46// Only useful if a previous version upgrade has not worked correctly (rare case)
     47  $query = '
     48SELECT version
     49  FROM '.PLUGINS_TABLE.'
     50WHERE id = "UserAdvManager"
     51;';
     52 
     53  $data = pwg_db_fetch_assoc(pwg_query($query));
     54 
     55  if (empty($data['version']) or $data['version'] <> $version)
     56  {
     57    $query = '
     58UPDATE '.PLUGINS_TABLE.'
     59SET version="'.$version.'"
     60WHERE id = "UserAdvManager"
     61LIMIT 1
     62;';
     63
     64    pwg_query($query);
     65  }
    4366}
    4467
  • extensions/UserAdvManager/branches/2.20/main.inc.php

    r10679 r10707  
    22/*
    33Plugin Name: UserAdvManager
    4 Version: 2.20.5
     4Version: 2.20.6
    55Description: Renforcer la gestion des utilisateurs - Enforce users management
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216
  • extensions/UserAdvManager/branches/2.20/maintain.inc.php

    r10392 r10707  
    254254  }
    255255
     256  // Update plugin version number in #_config table and check consistency of #_plugins table
    256257  UAM_version_update();
    257258
Note: See TracChangeset for help on using the changeset viewer.