From 99dc790689d18f4cee3aaae55fd8121ea76ab4ed Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 7 Mar 2017 09:13:54 -0800 Subject: [PATCH] Issue #2457 - Check social plugin during upgrade. --- e107_admin/update_routines.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index da4d9cc5b..6d1f5d5ef 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -565,6 +565,7 @@ function update_core_database($type = '') $sql = e107::getDb(); $log = e107::getLog(); $just_check = ($type == 'do') ? false : true; + $pref = e107::getPref(); if(!$sql->select('core_media_cat', 'media_cat_id', "media_cat_category = '_icon_svg' LIMIT 1")) @@ -580,6 +581,16 @@ function update_core_database($type = '') } + if(isset($pref['e_header_list']['social'])) + { + if($just_check) + { + return update_needed("Social Plugin Needs to be refreshed. "); + } + + e107::getPlugin()->refresh('social'); + } + return $just_check; // List of changed menu locations.