]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not show deprecated errors on php 5.3.0+; the rss libraries throw many of them
authorChristian Weiske <cweiske@cweiske.de>
Wed, 10 Nov 2010 20:59:23 +0000 (21:59 +0100)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 06:40:53 +0000 (09:40 +0300)
functions.php

index 3b9346c5f7cc7df06d79ef5d492d23a26e04cb72..715d29deef6dd36c57f560d37497aa0aeed1ee37 100644 (file)
@@ -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';