2010-01-21 Miguel de Dios <miguel.dedios@artica.es>

* include/config_process.php: use the flag "$develop_bypass" to change the
	method to show the php messages for developing purposes. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-01-22 12:51:13 +00:00
parent 47356dd96a
commit 82f72bb3e3
2 changed files with 20 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2010-01-21 Miguel de Dios <miguel.dedios@artica.es>
* include/config_process.php: use the flag "$develop_bypass" to change the
method to show the php messages for developing purposes.
2010-01-21 Miguel de Dios <miguel.dedios@artica.es> 2010-01-21 Miguel de Dios <miguel.dedios@artica.es>
* godmode/setup/setup.php: fix bug that overwrite the row of "Attachment * godmode/setup/setup.php: fix bug that overwrite the row of "Attachment
store" field when put the row of field "IP list with API access". store" field when put the row of field "IP list with API access".

View File

@ -27,19 +27,26 @@ $pandora_version = 'v3.1-dev';
/* Help to debug problems. Override global PHP configuration */ /* Help to debug problems. Override global PHP configuration */
// error_reporting(E_ALL); if ($develop_bypass != 1) {
// error_reporting(E_ALL);
if (strnatcmp(phpversion(),'5.2.11') >= 0)
if (strnatcmp(phpversion(),'5.2.11') >= 0)
{ {
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE); error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
} }
else else
{ {
error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL & ~E_NOTICE);
} }
ini_set("display_errors", 0); ini_set("display_errors", 0);
ini_set("error_log", $config["homedir"]."/pandora_console.log"); ini_set("error_log", $config["homedir"]."/pandora_console.log");
}
else {
error_reporting(E_ALL);
ini_set("display_errors", 1);
ini_set("error_log", $config["homedir"]."/pandora_console.log");
}
// Set a default timezone default if not configured // Set a default timezone default if not configured
// to avoid warnings and bad timestamp calculation in PHP > 5.1 // to avoid warnings and bad timestamp calculation in PHP > 5.1