1
0
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:
Moc
2021-03-17 19:42:21 +01:00
parent 07faad666a
commit b2cf6c07b3
3 changed files with 60 additions and 35 deletions

View File

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