[Phphtmllib-devel] SF.net SVN: phphtmllib:[3321] trunk/phphtmllib/src/mvc/Controller.inc
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-01-12 19:57:11
|
Revision: 3321 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3321&view=rev Author: hemna Date: 2010-01-12 19:57:04 +0000 (Tue, 12 Jan 2010) Log Message: ----------- added support to disable controller request debug output on objects that provide the controller_debug_allowed() method. Modified Paths: -------------- trunk/phphtmllib/src/mvc/Controller.inc Modified: trunk/phphtmllib/src/mvc/Controller.inc =================================================================== --- trunk/phphtmllib/src/mvc/Controller.inc 2010-01-12 19:14:48 UTC (rev 3320) +++ trunk/phphtmllib/src/mvc/Controller.inc 2010-01-12 19:57:04 UTC (rev 3321) @@ -192,7 +192,13 @@ print $html; if ($GLOBALS['config']->get('controller_request_debug',false)) { - print $this->get_debug_panel($this->target, $this->obj, $html, (microtime(true) - $time))->render(); + if (method_exists($this->obj, "controller_debug_allowed")) { + if ($this->obj->controller_debug_allowed()) { + print $this->get_debug_panel($this->target, $this->obj, $html, (microtime(true) - $time))->render(); + } + } else { + print $this->get_debug_panel($this->target, $this->obj, $html, (microtime(true) - $time))->render(); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |