Skip to content

Commit a5d9449

Browse files
committedNov 8, 2012
// Move settings of MODE_DEV in defines.inc.php
1 parent d00826e commit a5d9449

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed
 

‎config/config.inc.php

+2-17
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,9 @@
2525
* International Registered Trademark & Property of PrestaShop SA
2626
*/
2727

28-
/* Debug only */
29-
define('_PS_MODE_DEV_', true);
30-
if (_PS_MODE_DEV_)
31-
{
32-
@ini_set('display_errors', 'on');
33-
define('_PS_DEBUG_SQL_', true);
34-
}
35-
else
36-
{
37-
@ini_set('display_errors', 'off');
38-
define('_PS_DEBUG_SQL_', false);
39-
}
40-
28+
require_once(dirname(__FILE__).'/defines.inc.php');
4129
$start_time = microtime(true);
4230

43-
/* Compatibility warning */
44-
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);
45-
4631
/* SSL configuration */
4732
define('_PS_SSL_PORT_', 443);
4833

@@ -66,7 +51,7 @@
6651
}
6752

6853
require_once(dirname(__FILE__).'/settings.inc.php');
69-
require_once(dirname(__FILE__).'/defines.inc.php');
54+
7055
require_once(dirname(__FILE__).'/autoload.php');
7156

7257
if (_PS_DEBUG_PROFILING_)

‎config/defines.inc.php

+17
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,23 @@
2525
* International Registered Trademark & Property of PrestaShop SA
2626
*/
2727

28+
/* Debug only */
29+
define('_PS_MODE_DEV_', true);
30+
if (_PS_MODE_DEV_)
31+
{
32+
@ini_set('display_errors', 'on');
33+
define('_PS_DEBUG_SQL_', true);
34+
/* Compatibility warning */
35+
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true);
36+
}
37+
else
38+
{
39+
@ini_set('display_errors', 'off');
40+
define('_PS_DEBUG_SQL_', false);
41+
/* Compatibility warning */
42+
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
43+
}
44+
2845
define('_PS_DEBUG_PROFILING_', false);
2946
define('_PS_MODE_DEMO_', false);
3047

0 commit comments

Comments
 (0)
Please sign in to comment.