function can_perform_cloud_install($theme = true) { require_once WPTOUCH_DIR . '/core/addon-theme-installer.php'; $installer = new WPtouchAddonThemeInstaller(); if ($theme) { return $installer->can_perform_install('themes'); } else { return $installer->can_perform_install('extensions'); } }
function can_perform_cloud_install($theme = true) { require_once WPTOUCH_DIR . '/core/addon-theme-installer.php'; $installer = new WPtouchAddonThemeInstaller(); if ($theme) { return $installer->can_perform_install_anywhere(wptouch_get_multsite_aware_install_path('themes')); } else { return $installer->can_perform_install(wptouch_get_multsite_aware_install_path('extensions')); } }