mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Fix for SVG icon import.
This commit is contained in:
@@ -123,7 +123,7 @@ if (!$dont_check_update)
|
||||
$LAN_UPDATE_5 = deftrue('LAN_UPDATE_5', "Core database structure");
|
||||
|
||||
|
||||
// $dbupdate['212_to_213'] = array('master'=>false, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.1.2','2.1.3')), 'message'=> null, 'hide_when_complete'=>true);
|
||||
$dbupdate['214_to_215'] = array('master'=>false, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.1.4','2.1.5')), 'message'=> null, 'hide_when_complete'=>true);
|
||||
|
||||
|
||||
$dbupdate['706_to_800'] = array('master'=>true, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('1.x','2.0')), 'message'=> LAN_UPDATE_29, 'hide_when_complete'=>true);
|
||||
@@ -556,13 +556,29 @@ function update_core_database($type = '')
|
||||
* @param string $type
|
||||
* @return bool true = no update required, and false if update required.
|
||||
*/
|
||||
function update_212_to_213($type='')
|
||||
function update_214_to_215($type='')
|
||||
{
|
||||
|
||||
$sql = e107::getDb();
|
||||
$log = e107::getLog();
|
||||
$just_check = ($type == 'do') ? false : true;
|
||||
|
||||
|
||||
if(!$sql->select('core_media_cat', 'media_cat_id', "media_cat_category = '_icon_svg' LIMIT 1"))
|
||||
{
|
||||
if($just_check)
|
||||
{
|
||||
return update_needed("Missing Media-category for SVG");
|
||||
}
|
||||
|
||||
$query = "INSERT INTO `#core_media_cat` (media_cat_id, media_cat_owner, media_cat_category, media_cat_title, media_cat_sef, media_cat_diz, media_cat_class, media_cat_image, media_cat_order) VALUES (NULL, '_icon', '_icon_svg', 'Icons SVG', '', 'Available where icons are used in admin.', '253', '', '0');";
|
||||
|
||||
return $sql->gen($query);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// List of changed menu locations.
|
||||
/*
|
||||
$changeMenuPaths = array(
|
||||
|
Reference in New Issue
Block a user