summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-19 08:06:56 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-19 08:06:56 +0300
commiteab69f8796c1d42b2e0d08282b5ff1859f689a8a (patch)
treea7ec25ba4300ded6cccd974857e49a0debbd019c /include
parentf4973264d35cd95a110225b2e274a38bf9c7f3a6 (diff)
parentce36b27a0d01bcc61114028d0f8ec3d3e20d30de (diff)
Merge branch 'feature/orm-and-misc' into 'master'
Use ORM in more places, deprecate const SUBSTRING_FOR_DATE, some minor fixes See merge request tt-rss/tt-rss!135
Diffstat (limited to 'include')
-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()