From a8938827898ed40d35f25b055a72a41a2c1567ef Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 18 Feb 2012 20:46:46 +0000 Subject: - multisize thumb longest side can be smaller than the square size - remove unused css, shorten/optimize php called very often (at least theoretically should be faster) git-svn-id: http://piwigo.org/svn/trunk@13240 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/template.class.php') diff --git a/include/template.class.php b/include/template.class.php index ea70549f9..c75c67fb6 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -683,7 +683,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa $ret = $script->path; else { - $ret = embellish_url(get_root_url().$script->path); + $ret = get_root_url().$script->path; if ($script->version!==false) { $ret.= '?v'. ($script->version ? $script->version : PHPWG_VERSION); @@ -691,7 +691,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa } // trigger the event for eventual use of a cdn $ret = trigger_event('combined_script', $ret, $script); - return $ret; + return embellish_url($ret); } function block_footer_script($params, $content, &$smarty, &$repeat) -- cgit v1.2.3