diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 47d472df03..05bade8925 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2010-01-21 Miguel de Dios + * 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 * 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". diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 2ed6876aba..5ea2acd3fe 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -27,19 +27,26 @@ $pandora_version = 'v3.1-dev'; /* Help to debug problems. Override global PHP configuration */ -// error_reporting(E_ALL); - -if (strnatcmp(phpversion(),'5.2.11') >= 0) +if ($develop_bypass != 1) { + // error_reporting(E_ALL); + + 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("error_log", $config["homedir"]."/pandora_console.log"); + + ini_set("display_errors", 0); + 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 // to avoid warnings and bad timestamp calculation in PHP > 5.1