1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 23:01:27 +00:00

do not show deprecated errors on php 5.3.0+; the rss libraries throw many of them

This commit is contained in:
Christian Weiske
2010-11-10 21:59:23 +01:00
committed by Andrew Dolgov
parent 1f6131f515
commit 8a7f576735

View 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';