Skip to content

Commit

Permalink
Moving error flags to core bootstrap to avoid extra changes in user f…
Browse files Browse the repository at this point in the history
…iles, fixing error in previous commit.
  • Loading branch information
nateabele committed Aug 1, 2009
1 parent e47b196 commit 7847044
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
7 changes: 0 additions & 7 deletions app/webroot/index.php
Expand Up @@ -52,13 +52,6 @@
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
}
/**
* PHP 5.3 raises many notices in bootstrap.
*/
if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 8192);
}
error_reporting(E_ALL & ~E_DEPRECATED);

/**
* Editing below this line should NOT be necessary.
Expand Down
4 changes: 3 additions & 1 deletion cake/bootstrap.php
Expand Up @@ -23,8 +23,10 @@
define('PHP5', (PHP_VERSION >= 5));
}
if (!defined('E_DEPRECATED')) {
define('PHP5', (PHP_VERSION >= 5));
define('E_DEPRECATED', 8192);
}
error_reporting(E_ALL & ~E_DEPRECATED);

require CORE_PATH . 'cake' . DS . 'basics.php';
$TIME_START = getMicrotime();
require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
Expand Down
7 changes: 0 additions & 7 deletions cake/console/libs/templates/skel/webroot/index.php
Expand Up @@ -62,13 +62,6 @@
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
}
/**
* PHP 5.3 raises many notices in bootstrap.
*/
if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 8192);
}
error_reporting(E_ALL & ~E_DEPRECATED);

/**
* Editing below this line should not be necessary.
Expand Down

0 comments on commit 7847044

Please sign in to comment.