Redbean + Smarty update
This commit is contained in:
parent
c1b8226466
commit
eb0835ff74
122 changed files with 12653 additions and 11637 deletions
|
@ -2,18 +2,17 @@
|
|||
/**
|
||||
* Smarty Internal Plugin Resource Extends
|
||||
*
|
||||
* @package Smarty
|
||||
* @package Smarty
|
||||
* @subpackage TemplateResources
|
||||
* @author Uwe Tews
|
||||
* @author Rodney Rehm
|
||||
* @author Uwe Tews
|
||||
* @author Rodney Rehm
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty Internal Plugin Resource Extends
|
||||
*
|
||||
* Implements the file system as resource for Smarty which {extend}s a chain of template files templates
|
||||
*
|
||||
* @package Smarty
|
||||
* @package Smarty
|
||||
* @subpackage TemplateResources
|
||||
*/
|
||||
class Smarty_Internal_Resource_Extends extends Smarty_Resource
|
||||
|
@ -28,8 +27,10 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource
|
|||
/**
|
||||
* populate Source Object with meta data from Resource
|
||||
*
|
||||
* @param Smarty_Template_Source $source source object
|
||||
* @param Smarty_Template_Source $source source object
|
||||
* @param Smarty_Internal_Template $_template template object
|
||||
*
|
||||
* @throws SmartyException
|
||||
*/
|
||||
public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null)
|
||||
{
|
||||
|
@ -43,7 +44,7 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource
|
|||
throw new SmartyException("Resource type {$s->type} cannot be used with the extends resource type");
|
||||
}
|
||||
$sources[$s->uid] = $s;
|
||||
$uid .= $s->filepath;
|
||||
$uid .= realpath($s->filepath);
|
||||
if ($_template && $_template->smarty->compile_check) {
|
||||
$exists = $exists && $s->exists;
|
||||
}
|
||||
|
@ -77,6 +78,7 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource
|
|||
* Load template's source from files into current template object
|
||||
*
|
||||
* @param Smarty_Template_Source $source source object
|
||||
*
|
||||
* @return string template source
|
||||
* @throws SmartyException if source cannot be loaded
|
||||
*/
|
||||
|
@ -100,11 +102,11 @@ class Smarty_Internal_Resource_Extends extends Smarty_Resource
|
|||
* Determine basename for compiled filename
|
||||
*
|
||||
* @param Smarty_Template_Source $source source object
|
||||
*
|
||||
* @return string resource's basename
|
||||
*/
|
||||
public function getBasename(Smarty_Template_Source $source)
|
||||
{
|
||||
return str_replace(':', '.', basename($source->filepath));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue