[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-cvs
Subject: [SMARTY-CVS] cvs: smarty /libs/plugins function.eval.php
From: "Messju Mohr" <messju () php ! net>
Date: 2003-07-17 14:23:18
[Download RAW message or body]
messju Thu Jul 17 10:23:18 2003 EDT
Modified files:
/smarty/libs/plugins function.eval.php
Log:
fixed assign parameter for eval (must have gotton lost on its way to 2.5.0)
cleaned up indentiation
Index: smarty/libs/plugins/function.eval.php
diff -u smarty/libs/plugins/function.eval.php:1.10 smarty/libs/plugins/function.eval.php:1.11
--- smarty/libs/plugins/function.eval.php:1.10 Sun Jun 29 18:57:33 2003
+++ smarty/libs/plugins/function.eval.php Thu Jul 17 10:23:18 2003
@@ -25,21 +25,21 @@
return;
}
- if($params['var'] == '') {
- return;
- }
+ if($params['var'] == '') {
+ return;
+ }
- $smarty->_compile_source('evaluated template', $params['var'], $_var_compiled);
+ $smarty->_compile_source('evaluated template', $params['var'], $_var_compiled);
ob_start();
- $smarty->smarty_eval('?>' . $_var_compiled);
- $_contents = ob_get_contents();
+ $smarty->smarty_eval('?>' . $_var_compiled);
+ $_contents = ob_get_contents();
ob_end_clean();
- if (!empty($assign)) {
- $smarty->assign($assign, $_contents);
+ if (!empty($params['assign'])) {
+ $smarty->assign($params['assign'], $_contents);
} else {
- return $_contents;
+ return $_contents;
}
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic