[xoops-cvslog 2976] CVS update: xoops2jp/html/class

Back to archive index

Minahito minah****@users*****
2006年 5月 10日 (水) 12:34:12 JST


Index: xoops2jp/html/class/template.php
diff -u xoops2jp/html/class/template.php:1.2.8.5 xoops2jp/html/class/template.php:1.2.8.6
--- xoops2jp/html/class/template.php:1.2.8.5	Wed Apr 19 14:01:13 2006
+++ xoops2jp/html/class/template.php	Wed May 10 12:34:12 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: template.php,v 1.2.8.5 2006/04/19 05:01:13 minahito Exp $
+// $Id: template.php,v 1.2.8.6 2006/05/10 03:34:12 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -229,6 +229,23 @@
 	{
 		return 'mod_'.$dirname.'|'.md5(str_replace(XOOPS_URL, '', $GLOBALS['xoopsRequestUri']));
 	}
+
+	/**
+	 * Return smarty's debug console if debug mode is active.
+	 *
+	 * @return string
+	 */	
+	function fetchDebugConsole()
+	{
+		if ($this->debugging) {
+			// capture time for debugging info
+			$_params = array();
+			require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
+			$this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time);
+			require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');
+			return smarty_core_display_debug_console($_params, $this);
+		}
+	}
 }
 
 


xoops-cvslog メーリングリストの案内
Back to archive index