[Cs-project-svn_notify] SF.net SVN: cs-project: [624] trunk/lib/site_config.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2007-11-15 16:09:33
|
Revision: 624 http://cs-project.svn.sourceforge.net/cs-project/?rev=624&view=rev Author: crazedsanity Date: 2007-11-15 08:09:20 -0800 (Thu, 15 Nov 2007) Log Message: ----------- Log the message instead of the exception object. /lib/site_config.php: * exception_handler(): -- now calls Exception::getMessage() instead of just logging the object (the latter works on some versions of PHP5, but not all; when it works, it gives the message along with a stack tra Modified Paths: -------------- trunk/lib/site_config.php Modified: trunk/lib/site_config.php =================================================================== --- trunk/lib/site_config.php 2007-11-15 16:07:13 UTC (rev 623) +++ trunk/lib/site_config.php 2007-11-15 16:09:20 UTC (rev 624) @@ -36,7 +36,7 @@ //attempt to log the problem; if it happens too early, we can't do much about it. try { - print "<pre><h3>FATAL EXCEPTION ENCOUNTERED: </h3>". $exception ."</pre>"; + print "<pre><h3>FATAL EXCEPTION ENCOUNTERED: </h3>". $exception->getMessage() ."</pre>"; include_once(dirname(__FILE__) ."/globalFunctions.php"); if(function_exists('get_config_db_params') && class_exists('cs_phpDB') && class_exists('logsClass')) { $db = new cs_phpDB; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |