Show
Ignore:
Timestamp:
02/19/11 13:48:07 (2 years ago)
Author:
p_lindheimer
Message:

allow the versionupgrade module to block available upgrades so user can be presented with only the allowed modules. This enables controlling specific steps where more complicated upgrades would break if they don't follow the proper order.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.8/amp_conf/htdocs/admin/page.modules.php

    r11465 r11473  
    560560        continue; 
    561561      } 
     562      // If versionupgrade module is present then allow it to skip modules that should not be presented 
     563      // because and upgrade is in process. This can help assure only safe modules are present and 
     564      // force the user to upgrade in the proper order. 
     565      // 
     566      if (function_exists('versionupgrade_allowed_modules') && !versionupgrade_allowed_modules(&$modules[$name])) { 
     567        continue; 
     568      } 
    562569      $numdisplayed++; 
    563570