From: <var...@us...> - 2015-02-25 15:06:25
|
Revision: 9560 http://sourceforge.net/p/phpwiki/code/9560 Author: vargenau Date: 2015-02-25 15:06:23 +0000 (Wed, 25 Feb 2015) Log Message: ----------- Remove debug code Modified Paths: -------------- trunk/lib/ErrorManager.php Modified: trunk/lib/ErrorManager.php =================================================================== --- trunk/lib/ErrorManager.php 2015-02-25 15:05:31 UTC (rev 9559) +++ trunk/lib/ErrorManager.php 2015-02-25 15:06:23 UTC (rev 9560) @@ -631,9 +631,8 @@ $lines = explode("\n", $this->errstr); elseif (is_object($this->errstr)) $lines = array($this->errstr->asXML()); - $errtype = (DEBUG & _DEBUG_VERBOSE) ? sprintf("%s[%d]", $this->getDescription(), $this->errno) - : sprintf("%s", $this->getDescription()); - if ((DEBUG & _DEBUG_VERBOSE) or $this->isFatal()) { + $errtype = sprintf("%s", $this->getDescription()); + if ($this->isFatal()) { $msg = sprintf("%s:%d %s: %s %s", $errfile, $this->errline, $errtype, @@ -646,8 +645,7 @@ array_shift($lines), $count > 1 ? sprintf(" (...repeated %d times)", $count) : ""); } - $html = HTML::div(array('class' => $this->getHtmlClass()), - HTML::p($msg)); + $html = HTML::div(array('class' => $this->getHtmlClass()), HTML::p($msg)); if ($lines) { $list = HTML::ul(); foreach ($lines as $line) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |