summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <[email protected]>2010-11-10 21:59:23 +0100
committerAndrew Dolgov <[email protected]>2010-11-11 09:40:53 +0300
commit8a7f5767350382531fb5124c09bb33537a5730d2 (patch)
tree4ef9fd65b8257f231e281dd9641a491c19857901
parent1f6131f51511de62ac8e0a1ede75889b9679a232 (diff)
do not show deprecated errors on php 5.3.0+; the rss libraries throw many of them
-rw-r--r--functions.php6
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';