From: <var...@us...> - 2010-08-31 13:42:34
|
Revision: 7658 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7658&view=rev Author: vargenau Date: 2010-08-31 13:42:28 +0000 (Tue, 31 Aug 2010) Log Message: ----------- Special case for Gforge Modified Paths: -------------- trunk/lib/main.php Modified: trunk/lib/main.php =================================================================== --- trunk/lib/main.php 2010-08-31 12:07:02 UTC (rev 7657) +++ trunk/lib/main.php 2010-08-31 13:42:28 UTC (rev 7658) @@ -1413,11 +1413,14 @@ $request->finish(); } -//$x = error_reporting(); // DEBUG: why is it 1 here? should be E_ALL -if (defined('E_STRICT') and (E_ALL & E_STRICT)) // strict php5? - error_reporting(E_ALL & ~E_STRICT); // exclude E_STRICT -else - error_reporting(E_ALL); // php4 +if ((!GFORGE) || (forge_get_config('installation_environment') != 'production')) { + if (defined('E_STRICT') and (E_ALL & E_STRICT)) // strict php5? + error_reporting(E_ALL & ~E_STRICT); // exclude E_STRICT + else + error_reporting(E_ALL); // php4 +} else { + error_reporting(E_ERROR); +} // don't run the main loop for special requests (test, getimg, xmlrpc, soap, ...) if (!defined('PHPWIKI_NOMAIN') or !PHPWIKI_NOMAIN) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |