mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-30 11:51:41 +01:00
fix formatting
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Smarty plugin to execute PHP code
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage PluginsBlock
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
* Smarty plugin to execute PHP code
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage PluginsBlock
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty {php}{/php} block plugin
|
||||
*
|
||||
* @param string $content contents of the block
|
||||
* @param object $smarty Smarty object
|
||||
* @param boolean $ &$repeat repeat flag
|
||||
* @param object $template template object
|
||||
* @return string content re-formatted
|
||||
*/
|
||||
* Smarty {php}{/php} block plugin
|
||||
*
|
||||
* @param string $content contents of the block
|
||||
* @param object $smarty Smarty object
|
||||
* @param boolean $ &$repeat repeat flag
|
||||
* @param object $template template object
|
||||
* @return string content re-formatted
|
||||
*/
|
||||
function smarty_block_php($params, $content, $smarty, &$repeat, $template)
|
||||
{
|
||||
if (!$smarty->allow_php_tag) {
|
||||
@@ -24,4 +24,5 @@ function smarty_block_php($params, $content, $smarty, &$repeat, $template)
|
||||
eval($content);
|
||||
return '';
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user