From 0fe08001c39abc304fc0a80f81aca489db3fd32e Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 2 Jun 2014 19:57:30 +0000 Subject: local css prefilter does not need new line before get_combined_css git-svn-id: http://piwigo.org/svn/trunk@28600 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include/template.class.php') diff --git a/include/template.class.php b/include/template.class.php index 7deafb481..d0387b138 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -592,7 +592,7 @@ class Template /** * "translate" variable modifier. - * Usage : + * Usage : * - {'Comment'|translate} * - {'%d comments'|translate:$count} * @see l10n() @@ -1101,7 +1101,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa if (!empty($css)) { - $source = str_replace("\n{get_combined_css}", "\n".implode( "\n", $css )."\n{get_combined_css}", $source); + $source = str_replace("{get_combined_css}", implode( "\n", $css )."\n{get_combined_css}", $source); } return $source; @@ -1164,7 +1164,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa $buttons = array_merge($buttons, $row); } $this->assign('PLUGIN_PICTURE_BUTTONS', $buttons); - + // only for PHP 5.3 // $this->assign('PLUGIN_PICTURE_BUTTONS', // array_reduce( @@ -1189,7 +1189,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa $buttons = array_merge($buttons, $row); } $this->assign('PLUGIN_INDEX_BUTTONS', $buttons); - + // only for PHP 5.3 // $this->assign('PLUGIN_INDEX_BUTTONS', // array_reduce( @@ -1359,18 +1359,18 @@ class CssLoader private $registered_css; /** @param int used to keep declaration order */ private $counter; - + function __construct() { $this->clear(); } - + function clear() { $this->registered_css = array(); $this->counter = 0; } - + /** * @return Combinable[] array of combined CSS. */ @@ -1380,7 +1380,7 @@ class CssLoader $combiner = new FileCombiner('css', $this->registered_css); return $combiner->combine(); } - + /** * Callback for CSS files sorting. */ @@ -1388,7 +1388,7 @@ class CssLoader { return $a->order - $b->order; } - + /** * Adds a new file, if a file with the same $id already exsists, the one with * the higher $order or higher $version is kept. -- cgit v1.2.3