mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fix for missing media-manager category when uploading images for the Site Link Icon or Site Logo.
This commit is contained in:
@@ -266,13 +266,13 @@ $text = "
|
|||||||
<tr>
|
<tr>
|
||||||
<td><label for='sitename'>".PRFLAN_2."</label></td>
|
<td><label for='sitename'>".PRFLAN_2."</label></td>
|
||||||
<td>
|
<td>
|
||||||
".$frm->text('sitename', $pref['sitename'], 100, 'required=1')."
|
".$frm->text('sitename', $pref['sitename'], 100, 'required=1&size=xxlarge')."
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label for='siteurl'>".PRFLAN_3."</label></td>
|
<td><label for='siteurl'>".PRFLAN_3."</label></td>
|
||||||
<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>")."
|
".($pref['siteurl'] == SITEURL ? "" : "<div class='field-help'>".PRFLAN_159.": <strong>".SITEURL."</strong></div>")."
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -313,14 +313,14 @@ $text .= "<div class='field-spacer'>".$tp->parseTemplate("{IMAGESELECTOR={$parms
|
|||||||
$sLogo = siteinfo_shortcodes::sc_logo();
|
$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 .= "
|
$text .= "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label for='sitelogo'>".PRFLAN_214."</label></td>
|
<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>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label for='sitetag'>".PRFLAN_5."</label></td>
|
<td><label for='sitetag'>".PRFLAN_5."</label></td>
|
||||||
|
@@ -508,6 +508,11 @@ class e_form
|
|||||||
|
|
||||||
// print_a($sc_parameters);
|
// print_a($sc_parameters);
|
||||||
|
|
||||||
|
if(empty($sc_parameters['media']))
|
||||||
|
{
|
||||||
|
$sc_parameters['media'] = '_common';
|
||||||
|
}
|
||||||
|
|
||||||
$default_thumb = $default;
|
$default_thumb = $default;
|
||||||
if($default)
|
if($default)
|
||||||
{
|
{
|
||||||
|
@@ -1031,7 +1031,7 @@ class e_media
|
|||||||
$img_data['media_url'] = $tp->createConstants($newpath,'rel');
|
$img_data['media_url'] = $tp->createConstants($newpath,'rel');
|
||||||
$img_data['media_name'] = $tp->toDB($file);
|
$img_data['media_name'] = $tp->toDB($file);
|
||||||
$img_data['media_caption'] = $new_data['media_caption'];
|
$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_description'] = $new_data['media_description'];
|
||||||
$img_data['media_userclass'] = '0';
|
$img_data['media_userclass'] = '0';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user