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
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
<?php <?php
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');
if (defined('E_DEPRECATED')) {
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
} else {
error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL & ~E_NOTICE);
}
require_once 'config.php'; require_once 'config.php';