diff --git a/functions/func.parserequest.php b/functions/func.parserequest.php index cebc359..096deea 100644 --- a/functions/func.parserequest.php +++ b/functions/func.parserequest.php @@ -822,7 +822,7 @@ function request_parse($id) $return = str_replace('[tag:content]', $items, $main_template); $return = str_replace('[tag:path]', ABS_PATH, $return); - $return = str_replace('[tag:mediapath]', ABS_PATH . 'templates/' . THEME_FOLDER . '/', $return); + $return = str_replace('[tag:mediapath]', ABS_PATH . 'templates/' . ((defined('THEME_FOLDER') === false) ? DEFAULT_THEME_FOLDER : THEME_FOLDER) . '/', $return); $return = $AVE_Core->coreModuleTagParse($return); // Фиксируем время генерации запроса