mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Static Path fix.
This commit is contained in:
parent
747cc3b572
commit
a98fe2a9ef
@ -2598,11 +2598,11 @@ class e_parse extends e_parser
|
|||||||
{
|
{
|
||||||
if(!defined('e_HTTP_STATIC'))
|
if(!defined('e_HTTP_STATIC'))
|
||||||
{
|
{
|
||||||
|
// e107::getDebug()->log("e_HTTP_STATIC not defined");
|
||||||
return ($path === null) ? e_HTTP : $path;
|
return ($path === null) ? e_HTTP : $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$staticArray = e_HTTP_STATIC;
|
$staticArray = e_HTTP_STATIC;
|
||||||
|
|
||||||
if(is_array($staticArray))
|
if(is_array($staticArray))
|
||||||
@ -2766,10 +2766,13 @@ class e_parse extends e_parser
|
|||||||
|
|
||||||
if(!empty($staticFile) && is_readable(e_CACHE_IMAGE.$staticFile))
|
if(!empty($staticFile) && is_readable(e_CACHE_IMAGE.$staticFile))
|
||||||
{
|
{
|
||||||
return $this->staticUrl(e_CACHE_IMAGE.$staticFile);
|
$staticImg = $this->staticUrl(e_CACHE_IMAGE_ABS.$staticFile);
|
||||||
|
// var_dump($staticImg);
|
||||||
|
return $staticImg;
|
||||||
}
|
}
|
||||||
|
|
||||||
$options['nosef'] = true;
|
$options['nosef'] = true;
|
||||||
|
$options['x'] = null;
|
||||||
// file_put_contents(e_LOG."thumb.log", "\n++++++++++++++++++++++++++++++++++\n\n", FILE_APPEND);
|
// file_put_contents(e_LOG."thumb.log", "\n++++++++++++++++++++++++++++++++++\n\n", FILE_APPEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user