Skip to content

Commit

Permalink
#3622 - add e_notify check for download plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Moc committed Oct 28, 2019
1 parent 30302db commit ef2a831
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion e107_plugins/download/download_setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,20 @@ function uninstall_pre($var)

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();
}


}


Expand All @@ -65,6 +78,15 @@ function upgrade_post($needed)
* }
*/

// 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']))
Expand Down

0 comments on commit ef2a831

Please sign in to comment.