added smarty BC function get_template_vars()
relies on some additional plugins like serendipity_event_autotitle.php, serendipity_event_multilingual, serendipity_event_sidebarhider, serendipity_event_downloadmanager, serendipity_event_microformats and possibly also more plugins by custom developers.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// (experimental) serendipity_smarty_class.inc.php 2013-01-21 17:14 Ian
|
// serendipity_smarty_class.inc.php 2013-01-24 Ian
|
||||||
|
|
||||||
// define secure_dir and trusted_dirs for Serendipity_Smarty_Security_Policy class.
|
// define secure_dir and trusted_dirs for Serendipity_Smarty_Security_Policy class.
|
||||||
@define('S9Y_TEMPLATE_FALLBACK', $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default');
|
@define('S9Y_TEMPLATE_FALLBACK', $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default');
|
||||||
@ -370,6 +370,17 @@ class Serendipity_Smarty extends Smarty
|
|||||||
$this->assignByRef($tpl_var, $value);
|
$this->assignByRef($tpl_var, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an array containing template variables
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function get_template_vars($name=null)
|
||||||
|
{
|
||||||
|
return $this->getTemplateVars($name);
|
||||||
|
}
|
||||||
|
|
||||||
public static function test()
|
public static function test()
|
||||||
{
|
{
|
||||||
var_dump(get_called_class());
|
var_dump(get_called_class());
|
||||||
|
Reference in New Issue
Block a user