[Cs-content-commits] SF.net SVN: cs-content:[479] trunk/1.0/__autoload.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2010-07-09 16:41:50
|
Revision: 479 http://cs-content.svn.sourceforge.net/cs-content/?rev=479&view=rev Author: crazedsanity Date: 2010-07-09 16:41:44 +0000 (Fri, 09 Jul 2010) Log Message: ----------- Provide a backtrace when a class can't be found (only if cs_debug_backtrace() is available). Modified Paths: -------------- trunk/1.0/__autoload.php Modified: trunk/1.0/__autoload.php =================================================================== --- trunk/1.0/__autoload.php 2010-07-08 17:44:25 UTC (rev 478) +++ trunk/1.0/__autoload.php 2010-07-09 16:41:44 UTC (rev 479) @@ -50,6 +50,9 @@ $gf->debug_print(__FILE__ ." - line #". __LINE__ ."::: couldn't find (". $class ."), realcwd=(". $fs->realcwd .")",1); $gf->debug_print($tried,1); $gf->debug_print($tryThis,1); + if(function_exists('cs_debug_backtrace')) { + cs_debug_backtrace(1); + } $gf->debug_print($lsData,1); exit; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |