X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fsmarty%2Fplugins%2Ffunction.debug.php;fp=inc%2Fsmarty%2Fplugins%2Ffunction.debug.php;h=2452d625e8fece777f37388e180671e9246e39ff;hb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;hp=0000000000000000000000000000000000000000;hpb=bc13d5d6e1834068f8b690c32bba114e352dacdd;p=mirrors%2FKyberia-bloodline.git
diff --git a/inc/smarty/plugins/function.debug.php b/inc/smarty/plugins/function.debug.php
new file mode 100644
index 0000000..2452d62
--- /dev/null
+++ b/inc/smarty/plugins/function.debug.php
@@ -0,0 +1,35 @@
+
+ * Name: debug
+ * Date: July 1, 2002
+ * Purpose: popup debug window
+ * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
+ * (Smarty online manual)
+ * @author Monte Ohrt
+ * @version 1.0
+ * @param array
+ * @param Smarty
+ * @return string output from {@link Smarty::_generate_debug_output()}
+ */
+function smarty_function_debug($params, &$smarty)
+{
+ 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: */
+
+?>