aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-11-12 20:30:35 +0000
committerrvelices <rv-github@modusoptimus.com>2013-11-12 20:30:35 +0000
commit18d9bff158bf90fb7b57c34ca8835273b3bdced7 (patch)
treeeeb1e36a15d133c4500d0ce8051cf193aedd5095 /include/template.class.php
parent2eb4059d58557ef9461afb2fc733a45d4c0c3d7d (diff)
bug 2963: Ability to create css/js smarty templates - fixes
git-svn-id: http://piwigo.org/svn/trunk@25464 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.class.php')
-rw-r--r--include/template.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/template.class.php b/include/template.class.php
index 6f37aa897..deef61af5 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -1372,9 +1372,8 @@ final class FileCombiner
else
{
$this->flush_pending($result, $pending, $key, $force);
- $pending = array();
$key = $this->is_css ? array(get_absolute_root_url(false)): array(); //because for css we modify bg url
- $result[] = $combinable;
+ $pending = array($combinable);
}
}
$this->flush_pending($result, $pending, $key, $force);
@@ -1413,6 +1412,7 @@ final class FileCombiner
private function process_combinable($combinable, $return_content, $force)
{
+ global $conf;
if ($combinable->is_template)
{
if (!$return_content)
@@ -1420,7 +1420,7 @@ final class FileCombiner
$key = array($combinable->path, $combinable->version);
if ($conf['template_compile_check'])
$key[] = filemtime( PHPWG_ROOT_PATH . $combinable->path );
- $file = PWG_COMBINED_DIR . 't' . base_convert(crc32($key),10,36) . '.' . $this->type;
+ $file = PWG_COMBINED_DIR . 't' . base_convert(crc32(implode(',',$key)),10,36) . '.' . $this->type;
if (!$force && file_exists(PHPWG_ROOT_PATH.$file) )
{
$combinable->path = $file;