mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
#4452 - Add e_print addon code and check
This commit is contained in:
@@ -71,6 +71,12 @@ class forum_setup
|
||||
|
||||
// }
|
||||
|
||||
// Check if e_print addon is loaded
|
||||
if(!e107::getAddon('forum','e_print'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -128,5 +134,11 @@ class forum_setup
|
||||
$mes->addSuccess("Migration is required. Please click 'Continue'.<br /><a class='btn btn-primary' href='".e_PLUGIN."forum/forum_update.php'>Continue</a>");
|
||||
}
|
||||
|
||||
|
||||
if(!e107::getAddon('forum','e_print'))
|
||||
{
|
||||
e107::getPlug()->clearCache()->buildAddonPrefLists();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user