mirror of
https://github.com/cytopia/devilbox.git
synced 2025-06-04 08:30:56 +00:00
Fix phpPgAdmin error reporting
This commit is contained in:
parent
9ff5006d1a
commit
d471794f72
@ -10,7 +10,7 @@
|
|||||||
include_once('./lang/translations.php');
|
include_once('./lang/translations.php');
|
||||||
|
|
||||||
// Set error reporting level to max
|
// Set error reporting level to max
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||||
|
|
||||||
// Application name
|
// Application name
|
||||||
$appName = 'phpPgAdmin';
|
$appName = 'phpPgAdmin';
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
include_once('./lang/translations.php');
|
include_once('./lang/translations.php');
|
||||||
|
|
||||||
// Set error reporting level to max
|
// Set error reporting level to max
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||||
|
|
||||||
// Application name
|
// Application name
|
||||||
$appName = 'phpPgAdmin';
|
$appName = 'phpPgAdmin';
|
||||||
|
@ -169,14 +169,17 @@ phpPgAdmin requires some adjustments to work with the Devilbox intranet. See bel
|
|||||||
```
|
```
|
||||||
`libraries/lib.inc.php`
|
`libraries/lib.inc.php`
|
||||||
```diff
|
```diff
|
||||||
- if (!ini_get('session.auto_start')) {
|
- error_reporting(E_ALL);
|
||||||
- session_name('PPA_ID');
|
+ error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||||
- session_start();
|
|
||||||
- }
|
- if (!ini_get('session.auto_start')) {
|
||||||
+ if (!strlen(session_id()) > 0) {
|
- session_name('PPA_ID');
|
||||||
+ session_name('PPA_ID');
|
- session_start();
|
||||||
+ session_start();
|
- }
|
||||||
+ }
|
+ if (!strlen(session_id()) > 0) {
|
||||||
|
+ session_name('PPA_ID');
|
||||||
|
+ session_start();
|
||||||
|
+ }
|
||||||
```
|
```
|
||||||
|
|
||||||
### Tests
|
### Tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user