cvs: smarty /libs/plugins function.debug.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1060291122@cvsserver> |
messju Thu Aug 7 17:18:42 2003 EDT
Modified files:
/smarty/libs/plugins function.debug.php
Log:
fixed {debug} and removed tabs in function.debug.php
Index: smarty/libs/plugins/function.debug.php
diff -u smarty/libs/plugins/function.debug.php:1.4 smarty/libs/plugins/function.debug.php:1.5
--- smarty/libs/plugins/function.debug.php:1.4 Sun Apr 20 17:11:59 2003
+++ smarty/libs/plugins/function.debug.php Thu Aug 7 17:18:41 2003
@@ -15,7 +15,7 @@
* Purpose: popup debug window
* @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
* (Smarty online manual)
- * @author Monte Ohrt <[email protected]>
+ * @author Monte Ohrt <[email protected]>
* @version 1.0
* @param array
* @param Smarty
@@ -23,10 +23,11 @@
*/
function smarty_function_debug($params, &$smarty)
{
- if($params['output']) {
- $smarty->assign('_smarty_debug_output',$params['output']);
- }
- return $smarty->_generate_debug_output();
+ if($params['output']) {
+ $smarty->assign('_smarty_debug_output',$params['output']);
+ }
+ require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php');
+ return smarty_core_display_debug_console(null, $smarty);
}
/* vim: set expandtab: */
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php