mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
#3622 - Rewrite e_notify and e_dashboard check
This commit is contained in:
@@ -8,11 +8,6 @@
|
|||||||
*
|
*
|
||||||
* Custom download install/uninstall/update routines
|
* Custom download install/uninstall/update routines
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/download/download_setup.php,v $
|
|
||||||
* $Revision$
|
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class download_setup
|
class download_setup
|
||||||
@@ -43,19 +38,12 @@ class download_setup
|
|||||||
|
|
||||||
function upgrade_required()
|
function upgrade_required()
|
||||||
{
|
{
|
||||||
// e107::getPlugPref('download','download_mail') OR e107::getPref('download_mail')
|
|
||||||
//return true;
|
|
||||||
|
|
||||||
|
// Check if e_dashboard and e_notify addons are loaded
|
||||||
// Check e_notify
|
if(!e107::getAddon('download','e_notify') || !e107::getAddon('download','e_dashboard'))
|
||||||
$list = e107::getConfig()->get('e_notify_list');
|
|
||||||
|
|
||||||
if(!empty($list) && !in_array('download', $list))
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
//e107::getPlug()->clearCache()->buildAddonPrefLists();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,13 +66,11 @@ class download_setup
|
|||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Check e_notify
|
// Make sure e_notify and e_dashboard addons are loaded
|
||||||
$list = e107::getConfig()->get('e_notify_list');
|
if(!e107::getAddon('download','e_notify') || !e107::getAddon('download','e_dashboard'))
|
||||||
|
|
||||||
if(!empty($list) && !in_array('download', $list))
|
|
||||||
{
|
{
|
||||||
e107::getPlug()->clearCache()->buildAddonPrefLists();
|
e107::getPlug()->clearCache()->buildAddonPrefLists();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$config = e107::getPref('url_config');
|
$config = e107::getPref('url_config');
|
||||||
|
Reference in New Issue
Block a user