Ignore:
Timestamp:
May 20, 2011, 10:21:46 PM (13 years ago)
Author:
Eric
Message:
  • Use pwg_db_real_escape_string() instead of addslashes()
  • Database upgrade process simplied (using version_compare() and code refactoring)
  • Bug 2253 fixed - New feature to allow comments on pictures only for specific users (who belong to a group) when "comments for all" is set
File:
1 edited

Legend:

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

    r10942 r10957  
    236236  }
    237237
    238 /* Check for upgrade from 2.16 to 2.20 */
    239 /* *********************************** */
    240   if (isset($conf['UserAdvManager_Version']) and strcmp($conf['UserAdvManager_Version'], '2.20.0') < 0)
    241   {
     238/* Check database upgrade since version 2.16.0 */
     239  if (isset($conf['UserAdvManager_Version']))
     240  {
     241    if (version_compare($conf['UserAdvManager_Version'], '2.20.0') < 0)
     242    {
    242243    /* upgrade from branch 2.16 to 2.20 */
    243244    /* ******************************** */
    244     upgrade_216_220();
    245   }
    246 
    247 /* Check for upgrade from 2.20.3 to 2.20.4 */
    248 /* *************************************** */
    249   if (isset($conf['UserAdvManager_Version']) and strcmp($conf['UserAdvManager_Version'], '2.20.4') < 0)
    250   {
    251     /* upgrade from branch 2.16 to 2.20 */
    252     /* ******************************** */
    253     upgrade_2203_2204();
     245      upgrade_216_220();
     246    }
     247   
     248    if (version_compare($conf['UserAdvManager_Version'], '2.20.4') < 0)
     249    {
     250    /* upgrade from version 2.20.3 to 2.20.4 */
     251    /* ************************************* */
     252      upgrade_2203_2204();
     253    }
     254   
     255    if (version_compare($conf['UserAdvManager_Version'], '2.20.7') < 0)
     256    {
     257    /* upgrade from version 2.20.4 to 2.20.7 */
     258    /* ************************************* */
     259      upgrade_2204_2207();
     260    }
    254261  }
    255262
Note: See TracChangeset for help on using the changeset viewer.