diff options
author | Christian Weiske <[email protected]> | 2010-11-10 21:59:23 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-11 09:40:53 +0300 |
commit | 8a7f5767350382531fb5124c09bb33537a5730d2 (patch) | |
tree | 4ef9fd65b8257f231e281dd9641a491c19857901 /functions.php | |
parent | 1f6131f51511de62ac8e0a1ede75889b9679a232 (diff) |
do not show deprecated errors on php 5.3.0+; the rss libraries throw many of them
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 3b9346c5f..715d29dee 100644 --- a/functions.php +++ b/functions.php @@ -1,7 +1,11 @@ <?php date_default_timezone_set('UTC'); - error_reporting(E_ALL & ~E_NOTICE); + if (defined('E_DEPRECATED')) { + error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); + } else { + error_reporting(E_ALL & ~E_NOTICE); + } require_once 'config.php'; |