Navigation Menu

Skip to content

Commit

Permalink
fix(developers): do not disable display errors if enabled from htaccess
Browse files Browse the repository at this point in the history
fixes #10619
  • Loading branch information
jdalsem committed Feb 2, 2022
1 parent 146ed1e commit 929806c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mod/developers/classes/Elgg/Developers/Bootstrap.php
Expand Up @@ -31,9 +31,12 @@ protected function processSettings() {
$events = $elgg->events;

$settings = $this->plugin()->getAllSettings();

ini_set('display_errors', (int) !empty($settings['display_errors']));


$display_errors = (int) !empty($settings['display_errors']);
if ($display_errors) {
ini_set('display_errors', $display_errors);
}

if (!empty($settings['screen_log']) && (elgg_get_viewtype() === 'default') && !\Elgg\Application::isCli()) {
// don't show in action/simplecache
$path = elgg_substr(current_page_url(), elgg_strlen(elgg_get_site_url()));
Expand Down

0 comments on commit 929806c

Please sign in to comment.