1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01: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

@ -266,13 +266,13 @@ $text = "
<tr>
<td><label for='sitename'>".PRFLAN_2."</label></td>
<td>
".$frm->text('sitename', $pref['sitename'], 100, 'required=1')."
".$frm->text('sitename', $pref['sitename'], 100, 'required=1&size=xxlarge')."
</td>
</tr>
<tr>
<td><label for='siteurl'>".PRFLAN_3."</label></td>
<td>
".$frm->text('siteurl', $pref['siteurl'], 150)."
".$frm->text('siteurl', $pref['siteurl'], 150, 'required=1&size=xxlarge')."
".($pref['siteurl'] == SITEURL ? "" : "<div class='field-help'>".PRFLAN_159.": <strong>".SITEURL."</strong></div>")."
</td>
</tr>
@ -313,14 +313,14 @@ $text .= "<div class='field-spacer'>".$tp->parseTemplate("{IMAGESELECTOR={$parms
$sLogo = siteinfo_shortcodes::sc_logo();
*/
$text .= $frm->imagepicker('sitebutton',$pref['sitebutton'],'_common','help=Used by Facebook and others. Should be a square image of at least 144px in width and height.');
$text .= $frm->imagepicker('sitebutton',$pref['sitebutton'],'','help=Used by Facebook and others. Should be a square image of at least 144px in width and height.');
$text .= "
</td>
</tr>
<tr>
<td><label for='sitelogo'>".PRFLAN_214."</label></td>
<td>".$frm->imagepicker('sitelogo',$pref['sitelogo'],'_common','help=Used by some themes as the header image on some pages.')."</td>
<td>".$frm->imagepicker('sitelogo',$pref['sitelogo'],'','help=Used by some themes as the header image on some pages.')."</td>
</tr>
<tr>
<td><label for='sitetag'>".PRFLAN_5."</label></td>

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';