1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-24 16:31:48 +02:00

Fixes #4583 - filetype values missing from forum attachment tooltip message.

This commit is contained in:
Cameron
2021-12-02 10:22:52 -08:00
parent e4984a6e39
commit d9d606f615
2 changed files with 4 additions and 4 deletions

View File

@@ -2380,7 +2380,7 @@ class e107forum
$FORUM_CRUMB['fieldlist'] = 'sitename,forums,parent,subparent,forum,thread';
$BREADCRUMB = $tp->parseTemplate('{BREADCRUMB=FORUM_CRUMB}', true);
$BREADCRUMB = $tp->parseTemplate('{BREADCRUMB=FORUM_CRUMB}', false); // must stay as 'false' to prevent sending to theme shortcodes.
}
else
{

View File

@@ -297,9 +297,9 @@ class plugin_forum_post_shortcodes extends e_shortcode
global $forum;
//. <div>".($pref['image_post'] ? "Attach file / image" : "Attach file")."</div>
//$tooltip = "Allowed file types | ".vartrue($allowed_filetypes).". Any other file type will be deleted instantly. Maximum file size: ".(vartrue($max_upload_size) ? $max_upload_size."bytes" : ini_get('upload_max_filesize'));
$tooltip = LAN_FORUM_3016.": ".vartrue($allowed_filetypes)." <br />".LAN_FORUM_3017."<br />".LAN_FORUM_3018.": ".(vartrue($max_upload_size) ? $max_upload_size." ".LAN_FORUM_3019 : ini_get('upload_max_filesize')); // FIXME <br /> in tooltip, no value $allowed_filetypes on v2/bootstrap
$allowedFileTypes = e107::getFile()->getAllowedFileTypes();
$tooltip = LAN_FORUM_3016.": ".implode(', ',array_keys($allowedFileTypes))."\n".LAN_FORUM_3017."\n".LAN_FORUM_3018.": ".(vartrue($max_upload_size) ? $max_upload_size." ".LAN_FORUM_3019 : ini_get('upload_max_filesize'));
$fileattach = "
<div>