1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Fixes #541 - banner plugin to be installed by default on upgrade.

This commit is contained in:
Cameron
2014-05-22 14:54:56 -07:00
parent 8030b6114e
commit a324e0324c
2 changed files with 48 additions and 1 deletions

View File

@@ -1359,6 +1359,13 @@ function update_706_to_800($type='')
// e107::getSingleton('e107plugin')->save_addon_prefs(); //XXX Needed? Uncomment if SQL update does not occur.
}
if (!e107::isInstalled('banner') && $sql->gen("SELECT * FROM #banner LIMIT 1"))
{
if ($just_check) return update_needed('Banner Table found, but plugin not installed. Needs to be refreshed.');
e107::getSingleton('e107plugin')->refresh('banner');
// e107::getSingleton('e107plugin')->save_addon_prefs(); //XXX Needed? Uncomment if SQL update does not occur.
}
// ---------------------------------