1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

thumbUrl method now converts shortcode paths (testing required)

This commit is contained in:
SecretR
2013-03-18 12:26:55 +02:00
parent 53b84b91f9
commit 4a30c7a2ca

View File

@@ -1813,9 +1813,11 @@ class e_parse extends e_parser
public function thumbUrl($url, $options = array(), $raw = false, $full = false)
{
if(substr($url,0,3)=="{e_") // Fix for broken links that use {e_MEDIA} etc. //XXX This is bad.
if(substr($url,0,3)=="{e_") // Fix for broken links that use {e_MEDIA} etc.
{
//$url = $this->replaceConstants($url,'abs');
//$url = $this->replaceConstants($url,'abs');
// always switch to 'nice' urls when SC is used
$url = str_replace($tp->getUrlConstants('sc'), $tp->getUrlConstants('raw'), $url);
}
if(!is_array($options))