1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

Bugtracker #3798 - display more user-friendly file name with forum uploads

This commit is contained in:
e107steved
2007-05-28 15:17:13 +00:00
parent 59abbc14d4
commit 88d986d815
2 changed files with 8 additions and 6 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $
| $Revision: 1.4 $
| $Date: 2007-01-18 20:44:32 $
| $Revision: 1.5 $
| $Date: 2007-05-28 15:17:13 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -630,7 +630,7 @@ function process_upload()
{
//upload was not an image, link to file
//echo "<pre>"; print_r($upload); echo "</pre>";
$_POST['post'] .= "[br][file=".e_FILE."public/".$upload['name']."]".$upload['name']."[/file]";
$_POST['post'] .= "[br][file=".e_FILE."public/".$upload['name']."]".(isset($upload['rawname']) ? $upload['rawname'] : $upload['name'])."[/file]";
}
}