1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Issue #4120 Check for outdated bootstrap path. Additional testing needed.

This commit is contained in:
Cameron
2020-05-12 15:21:20 -07:00
parent 2e0664dad4
commit 1fbb3c5a5c

View File

@@ -24,6 +24,14 @@ if(varset($_GET['mode']) == 'customize')
}
}
// check that the bootstrap library path is up-to-date before the header is loaded.
if($info = e107::getLibrary()->info('bootstrap'))
{
if($info['path'] !== '3')
{
e107::getCache()->clearAll('system');
}
}
include_once(e107::coreTemplatePath('admin_icons')); // Needs to be loaded before infopanel AND in boot.php