mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
#3622 - add e_notify check for download plugin
This commit is contained in:
@@ -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']))
|
||||
|
Reference in New Issue
Block a user