mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Compress the secureImg. TinyMce also decoding theme SEF image URLs now.
This commit is contained in:
@@ -249,6 +249,19 @@ TEMPL;
|
||||
$hKey => $match[4]
|
||||
);
|
||||
}
|
||||
elseif(preg_match('/theme\/img\/(a)?([\d]*)x(a)?([\d]*)\/(.*)/', $url, $match)) // Theme-image SEF Urls
|
||||
{
|
||||
$wKey = $match[1].'w';
|
||||
$hKey = $match[3].'h';
|
||||
|
||||
$ret = array(
|
||||
'src'=> 'e_THEME/'.$match[5],
|
||||
$wKey => $match[2],
|
||||
$hKey => $match[4]
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user