Changeset 26718


Ignore:
Timestamp:
Jan 14, 2014, 10:13:40 PM (10 years ago)
Author:
rvelices
Message:

bug 2963: Ability to create css/js smarty templates with caching (scripts was not using template parameter)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r26461 r26718  
    33// | Piwigo - a PHP based photo gallery                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2014 Piwigo Team                  http://piwigo.org |
     5// | Copyright(C) 2008-2013 Piwigo Team                  http://piwigo.org |
    66// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    77// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
     
    798798      empty($params['require']) ? array() : explode( ',', $params['require'] ),
    799799      @$params['path'],
    800       isset($params['version']) ? $params['version'] : 0 );
     800      isset($params['version']) ? $params['version'] : 0,
     801      @$params['template']);
    801802  }
    802803
     
    14951496   * @param string $version
    14961497   */
    1497   function add($id, $load_mode, $require, $path, $version=0)
     1498  function add($id, $load_mode, $require, $path, $version=0, $is_template=false)
    14981499  {
    14991500    if ($this->did_head && $load_mode==0)
     
    15081509    {
    15091510      $script = new Script($load_mode, $id, $path, $version, $require);
     1511      $script->is_template = $is_template;
    15101512      self::fill_well_known($id, $script);
    15111513      $this->registered_scripts[$id] = $script;
Note: See TracChangeset for help on using the changeset viewer.