[xoops-cvslog 5336] CVS update: xoops2jp/html/modules/legacy/class

Back to archive index

Minahito minah****@users*****
2006年 10月 15日 (日) 17:17:54 JST


Index: xoops2jp/html/modules/legacy/class/DebuggerManager.class.php
diff -u xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.1 xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.2
--- xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.1	Sat Oct 14 23:55:22 2006
+++ xoops2jp/html/modules/legacy/class/DebuggerManager.class.php	Sun Oct 15 17:17:54 2006
@@ -27,6 +27,8 @@
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
+require_once XOOPS_ROOT_PATH . "/class/errorhandler.php";
+
 define("XOOPS_DEBUG_OFF",0);
 define("XOOPS_DEBUG_PHP",1);
 define("XOOPS_DEBUG_MYSQL",2);
@@ -111,6 +113,8 @@
 	function prepare()
 	{
 		error_reporting(E_ALL);
+		$GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance();
+		$GLOBALS['xoopsErrorHandler']->activate(true);
 	}
 }
 
@@ -119,6 +123,12 @@
 */
 class Legacy_MysqlDebugger extends Legacy_AbstractDebugger
 {
+	function prepare()
+	{
+		$GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance();
+		$GLOBALS['xoopsErrorHandler']->activate(true);
+	}
+	
 	function renderLog()
 	{
 		$xoopsLogger =& XoopsLogger::instance();
@@ -149,6 +159,12 @@
 */
 class Legacy_SmartyDebugger extends Legacy_AbstractDebugger
 {
+	function prepare()
+	{
+		$GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance();
+		$GLOBALS['xoopsErrorHandler']->activate(true);
+	}
+	
 	function isDebugRenderSystem()
 	{
 		$root =& XCube_Root::getSingleton();


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