1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 10:01:56 +02:00

Fix for missing media-manager category when uploading images for the Site Link Icon or Site Logo.

This commit is contained in:
Cameron
2014-02-18 10:44:42 -08:00
parent 6a8e57bb05
commit 791944d394
3 changed files with 10 additions and 5 deletions

View File

@@ -508,6 +508,11 @@ class e_form
// print_a($sc_parameters);
if(empty($sc_parameters['media']))
{
$sc_parameters['media'] = '_common';
}
$default_thumb = $default;
if($default)
{

View File

@@ -1031,7 +1031,7 @@ class e_media
$img_data['media_url'] = $tp->createConstants($newpath,'rel');
$img_data['media_name'] = $tp->toDB($file);
$img_data['media_caption'] = $new_data['media_caption'];
$img_data['media_category'] = $category;
$img_data['media_category'] = vartrue($category,'_common_image');
$img_data['media_description'] = $new_data['media_description'];
$img_data['media_userclass'] = '0';