diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-01 22:12:31 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-01 22:12:31 +1000 |
| commit | 339853e5de9a1fb63116e0bd2014df3ecc6e32aa (patch) | |
| tree | 1b531791ca641fde275dc8ebb62a30705915e118 /post.php | |
| parent | d62f0ee046f130befb5cc63d813129156553ab9c (diff) | |
Show full filename on mouseover.
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -413,8 +413,8 @@ $is_an_image = !in_array($post['extension'], $config['allowed_ext_files']); - // Just trim the filename if it's too long - if(strlen($post['filename']) > 30) $post['filename'] = substr($post['filename'], 0, 27).'…'; + // Truncate filename if it is too long + $post['filename'] = substr($post['filename'], 0, $config['max_filename_len']); // Move the uploaded file if(!@move_uploaded_file($_FILES['file']['tmp_name'], $post['file'])) error($config['error']['nomove']); |
