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:
parent
4174a8f7fc
commit
95a21fea7d
@ -1,5 +1,5 @@
|
||||
<?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('S9Y_TEMPLATE_FALLBACK', $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default');
|
||||
@ -370,6 +370,17 @@ class Serendipity_Smarty extends Smarty
|
||||
$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()
|
||||
{
|
||||
var_dump(get_called_class());
|
||||
|
Loading…
x
Reference in New Issue
Block a user