mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes #3712
This commit is contained in:
@@ -4388,7 +4388,7 @@ class e_parser
|
|||||||
return $this->toGlyph($icon,$parm);
|
return $this->toGlyph($icon,$parm);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strpos($icon,'e_MEDIA')!==FALSE)
|
if(strpos($icon,'e_MEDIA_IMAGE')!==false)
|
||||||
{
|
{
|
||||||
$path = $this->thumbUrl($icon);
|
$path = $this->thumbUrl($icon);
|
||||||
$dimensions = $this->thumbDimensions();
|
$dimensions = $this->thumbDimensions();
|
||||||
|
@@ -1333,7 +1333,11 @@ class e_media
|
|||||||
$img_data = $this->mediaData($oldpath); // Basic File Info only
|
$img_data = $this->mediaData($oldpath); // Basic File Info only
|
||||||
|
|
||||||
|
|
||||||
if(!$typePath = $this->getPath($img_data['media_type'], $uploadPath))
|
if($category === '_icon')
|
||||||
|
{
|
||||||
|
$typePath = rtrim(e_MEDIA_ICON,'/');
|
||||||
|
}
|
||||||
|
elseif(!$typePath = $this->getPath($img_data['media_type'], $uploadPath))
|
||||||
{
|
{
|
||||||
$this->log("Line: ".__LINE__." Couldn't generate path from file info:".$oldpath);
|
$this->log("Line: ".__LINE__." Couldn't generate path from file info:".$oldpath);
|
||||||
$mes->addError("Couldn't generate path from file info:".$oldpath);
|
$mes->addError("Couldn't generate path from file info:".$oldpath);
|
||||||
|
Reference in New Issue
Block a user