mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 02:24:08 +02:00
Upgrade Fixes - Legacy Download image paths and Download Category icons.
This commit is contained in:
@@ -1743,7 +1743,7 @@ class e_parse extends e_parser
|
||||
// Convert URL's to clickable links, unless modifiers or prefs override
|
||||
if ($opts['link_click'])
|
||||
{
|
||||
if ($opts['link_replace'] && ADMIN_AREA !== true)
|
||||
if ($opts['link_replace'] && defset('ADMIN_AREA') !== true)
|
||||
{
|
||||
|
||||
$link_text = $pref['link_text'];
|
||||
@@ -3796,8 +3796,8 @@ class e_parser
|
||||
elseif(!empty($parm['legacy'])) // Search legacy path for image in a specific folder. No path, only file name provided.
|
||||
{
|
||||
|
||||
$legacyPath = $parm['legacy'].$file;
|
||||
$filePath = $tp->replaceConstants($legacyPath,'rel');
|
||||
$legacyPath = rtrim($parm['legacy'],'/').'/'.$file;
|
||||
$filePath = $tp->replaceConstants($legacyPath);
|
||||
|
||||
if(is_readable($filePath))
|
||||
{
|
||||
|
Reference in New Issue
Block a user