mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-28 19:01:37 +01:00
fix config_load, compile fetched arrays to compile_dir, switch display
back to runtime. clean up var names and function names, split up compile testing and compiling to separate funcs, rename some template_* functions to file_* functions and update logic so they can be used for file resources other than templates.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
* @param Smarty clever simulation of a method
|
||||
* @return string string $content re-formatted
|
||||
*/
|
||||
function smarty_block_textformat($params, $content, &$this)
|
||||
function smarty_block_textformat($params, $content, &$smarty)
|
||||
{
|
||||
$style = null;
|
||||
$indent = 0;
|
||||
@@ -71,7 +71,7 @@ function smarty_block_textformat($params, $content, &$this)
|
||||
}
|
||||
|
||||
if($assign != null) {
|
||||
$this->assign($assign,$output);
|
||||
$smarty->assign($assign,$output);
|
||||
} else {
|
||||
return $output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user