Changeset 10605

Show
Ignore:
Timestamp:
11/21/10 14:28:33 (3 years ago)
Author:
p_lindheimer
Message:

have module_uninstall remove any feature codes in case the module has not done so (and now modules don't need to bother...)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/libraries/module.functions.php

    r10244 r10605  
    10511051    return array(_("Failed to run un-installation scripts")); 
    10521052  } 
     1053 
     1054  // Now make sure all feature codes are uninstalled in case the module has not already done it 
     1055  // 
     1056  require_once( (defined('AMP_BASE_INCLUDE_PATH') ? AMP_BASE_INCLUDE_PATH.'/' : '').'libraries/featurecodes.class.php'); 
     1057  featurecodes_delModuleFeatures($modulename); 
    10531058   
    10541059  needreload();