aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-12-06 15:39:51 +0000
committerpatdenice <patdenice@piwigo.org>2010-12-06 15:39:51 +0000
commit1e6cae89c30296045b21c39502c1a20a9538dad7 (patch)
treef1d24290e1db86dff98b336608f894642ab26b88 /include/template.class.php
parentbbd63f0088fe3ee5ea491ac5da03d8b68b5b1a0b (diff)
Missing quote in header.tpl.
Add $id to script class (needed in cmp_by_mode_and_order function). git-svn-id: http://piwigo.org/svn/trunk@8008 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/template.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/template.class.php b/include/template.class.php
index c1bdc67fa..afc955096 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -822,14 +822,16 @@ class PwgTemplateAdapter
final class Script
{
+ public $id;
public $load_mode;
public $precedents = array();
public $path;
public $version;
public $extra = array();
- function Script($load_mode, $precedents, $path, $version)
+ function Script($id, $load_mode, $precedents, $path, $version)
{
+ $this->id = $id;
$this->load_mode = $load_mode;
$this->precedents = $precedents;
$this->path = $path;
@@ -899,7 +901,7 @@ class ScriptLoader
}
if (! isset( $this->registered_scripts[$id] ) )
{
- $script = new Script($load_mode, $require, $path, $version);
+ $script = new Script($id, $load_mode, $require, $path, $version);
self::fill_well_known($id, $script);
$this->registered_scripts[$id] = $script;
}