summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/functions.php b/include/functions.php
index c573042a2..f100e3046 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -11,11 +11,8 @@
if (function_exists("mb_internal_encoding")) mb_internal_encoding("UTF-8");
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 & ~E_DEPRECATED);
ini_set('display_errors', "false");
ini_set('display_startup_errors', "false");
@@ -26,7 +23,8 @@
require_once "autoload.php";
- define('SUBSTRING_FOR_DATE', 'SUBSTRING_FOR_DATE');
+ /** @deprecated use the 'SUBSTRING_FOR_DATE' string directly */
+ const SUBSTRING_FOR_DATE = 'SUBSTRING_FOR_DATE';
/**
* @deprecated by Prefs::get()