From c16c1b770dfcdd8a084d94aadbd23cf74f2dc817 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 25 Jan 2021 19:52:56 -0500 Subject: [PATCH] remove unnecessary E_ blocker --- CRM/Utils/System/Backdrop.php | 3 --- CRM/Utils/System/Drupal.php | 4 ---- 2 files changed, 7 deletions(-) diff --git a/CRM/Utils/System/Backdrop.php b/CRM/Utils/System/Backdrop.php index 1284b59563..3d72779f15 100644 --- a/CRM/Utils/System/Backdrop.php +++ b/CRM/Utils/System/Backdrop.php @@ -541,9 +541,6 @@ AND u.status = 1 require_once "$cmsPath/core/includes/config.inc"; backdrop_bootstrap(BACKDROP_BOOTSTRAP_FULL); - // Explicitly setting error reporting, since we cannot handle Backdrop - // related notices. - error_reporting(1); if (!function_exists('module_exists') || !module_exists('civicrm')) { if ($throwError) { echo '
Sorry, could not load Backdrop bootstrap.'; diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index 3d7efe9ad2..fea28fb6a4 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -493,10 +493,6 @@ AND u.status = 1 // @ to suppress notices eg 'DRUPALFOO already defined'. @drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); - // explicitly setting error reporting, since we cannot handle drupal related notices - // @todo 1 = E_ERROR, but more to the point setting error reporting deep in code - // causes grief with debugging scripts - error_reporting(1); if (!function_exists('module_exists')) { if ($throwError) { throw new Exception('Sorry, could not load drupal bootstrap.'); -- 2.25.1