From 1fbb3c5a5c1a50b9ab50b0b0b9b4ccf88d891b01 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 12 May 2020 15:21:20 -0700 Subject: [PATCH] Issue #4120 Check for outdated bootstrap path. Additional testing needed. --- e107_admin/admin.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/e107_admin/admin.php b/e107_admin/admin.php index c7041fb47..5a085056f 100644 --- a/e107_admin/admin.php +++ b/e107_admin/admin.php @@ -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