Skip to content

Commit 67c7b17

Browse files
committed
[install] change error_reporting level
1 parent cf15587 commit 67c7b17

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

html/install/index.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@
1212
| keeping compatibility with XOOPS 2.0.x <http://www.xoops.org> |
1313
*------------------------------------------------------------------------*/
1414
ini_set('display_errors', 1);
15-
if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
16-
error_reporting(error_reporting() ^ E_STRICT);
17-
}
18-
if (version_compare(PHP_VERSION, '6', '>=')) {
19-
error_reporting(error_reporting() ^ E_DEPRECATED);
20-
}
15+
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
2116

2217
include_once './passwd.php';
2318
if (INSTALL_USER != '' || INSTALL_PASSWD != '') {

0 commit comments

Comments
 (0)