From ef2a831132e247a07cd7109e380b7598ee1d10e4 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Mon, 28 Oct 2019 20:52:47 +0100 Subject: [PATCH] #3622 - add e_notify check for download plugin --- e107_plugins/download/download_setup.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/e107_plugins/download/download_setup.php b/e107_plugins/download/download_setup.php index f1fd3493e..0823f8696 100644 --- a/e107_plugins/download/download_setup.php +++ b/e107_plugins/download/download_setup.php @@ -43,7 +43,20 @@ class download_setup function upgrade_required() { - return false; + // e107::getPlugPref('download','download_mail') OR e107::getPref('download_mail') + //return true; + + + // Check e_notify + $list = e107::getConfig()->get('e_notify_list'); + + if(!empty($list) && !in_array('download', $list)) + { + return true; + //e107::getPlug()->clearCache()->buildAddonPrefLists(); + } + + } @@ -65,6 +78,15 @@ class download_setup * } */ + // Check e_notify + $list = e107::getConfig()->get('e_notify_list'); + + if(!empty($list) && !in_array('download', $list)) + { + e107::getPlug()->clearCache()->buildAddonPrefLists(); + } + + $config = e107::getPref('url_config'); if(!empty($config['download']))