Skip to content

Commit

Permalink
Fix image upload issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
realdigger committed Mar 3, 2017
1 parent b5e4880 commit 963884b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions Sources/GarageFunctions.php
Expand Up @@ -489,7 +489,8 @@ function dynoqm_select($VID, $dynoqm_id = 0)
function findexts($filename)
{
$filename = strtolower($filename);
$exts = preg_split("[/\\.]", $filename);
$exts = explode('.', $filename);

$n = count($exts) - 1;
$exts = $exts[$n];
return $exts;
Expand All @@ -505,7 +506,7 @@ function make_thumbnail($image, $store = 1, $remote = 0)
//echo "<br />";

$path = $boarddir . '/' . $smfgSettings['upload_directory'];
$name = preg_split("\.", $image);
$name = explode('.', $image);

//echo "<b>Path</b>: ".$path;
//echo "<br />";
Expand Down

0 comments on commit 963884b

Please sign in to comment.