1
0
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:
Cameron
2016-12-05 15:41:19 -08:00
parent 11a90dcbbb
commit e6be1b8a2c
4 changed files with 56 additions and 13 deletions

View File

@@ -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))
{