remove unnecessary E_ blocker
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 26 Jan 2021 00:52:56 +0000 (19:52 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 26 Jan 2021 19:49:10 +0000 (14:49 -0500)
CRM/Utils/System/Backdrop.php
CRM/Utils/System/Drupal.php

index 1284b5956393d4441eab60881065c3ab21113302..3d72779f15692f5b2825f865f65d7edd8cbbd434 100644 (file)
@@ -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 '<br />Sorry, could not load Backdrop bootstrap.';
index 3d7efe9ad2bf75b738ede9fb67c2119ea8f6a9f4..fea28fb6a4f4c469d92541dc22399f9149f12f31 100644 (file)
@@ -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.');