mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Issue #2457 - Check social plugin during upgrade.
This commit is contained in:
parent
9b8ab7a5b1
commit
99dc790689
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user