A_NextGen_Pro_Plus_Upgrade_Page

Class A_NextGen_Pro_Plus_Upgrade_Page.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/nextgen_pro_upgrade/package.module.nextgen_pro_upgrade.php  
  1. class A_NextGen_Pro_Plus_Upgrade_Page extends Mixin 
  2. function setup() 
  3. // Using include() to retrieve the is_plugin_active() is apparently The WordPress Way(tm).. 
  4. include_once ABSPATH . 'wp-admin/includes/plugin.php'; 
  5. // We shouldn't show the upgrade page if they already have the plugin and it's active 
  6. $found = false; 
  7. if (defined('NEXTGEN_GALLERY_PRO_PLUGIN_BASENAME')) { 
  8. $found = 'NEXTGEN_GALLERY_PRO_PLUGIN_BASENAME'; 
  9. if (defined('NGG_PRO_PLUGIN_BASENAME')) { 
  10. $found = 'NGG_PRO_PLUGIN_BASENAME'; 
  11. if (!($found && is_plugin_active(constant($found)))) { 
  12. $this->object->add('ngg_pro_upgrade', array('adapter' => 'A_NextGen_Pro_Upgrade_Controller', 'parent' => NGGFOLDER)); 
  13. return $this->call_parent('setup');