mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-26 07:13:21 +00:00
[4.0] Remove a "development" error_reporting as obsolete (#28580)
This commit is contained in:
parent
ffb0aea177
commit
33327bd264
|
@ -788,7 +788,6 @@
|
|||
<option value="none">COM_CONFIG_FIELD_VALUE_NONE</option>
|
||||
<option value="simple">COM_CONFIG_FIELD_VALUE_SIMPLE</option>
|
||||
<option value="maximum">COM_CONFIG_FIELD_VALUE_MAXIMUM</option>
|
||||
<option value="development">COM_CONFIG_FIELD_VALUE_DEVELOPMENT</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
|
|
|
@ -110,6 +110,13 @@ class ApplicationModel extends FormModel
|
|||
$data = array_merge($data, $temp);
|
||||
}
|
||||
|
||||
// Correct error_reporting value, since we removed "development", the "maximum" should be set instead
|
||||
// @TODO: This can be removed in 5.0
|
||||
if (!empty($data['error_reporting']) && $data['error_reporting'] === 'development')
|
||||
{
|
||||
$data['error_reporting'] = 'maximum';
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
|
@ -61,17 +61,12 @@ switch ($config->error_reporting)
|
|||
break;
|
||||
|
||||
case 'maximum':
|
||||
case 'development': // <= Stays for backward compatibility, @TODO: can be removed in 5.0
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
break;
|
||||
|
||||
case 'development':
|
||||
error_reporting(-1);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
error_reporting($config->error_reporting);
|
||||
ini_set('display_errors', 1);
|
||||
|
|
|
@ -146,7 +146,6 @@ COM_CONFIG_FIELD_VALUE_BEFORE="Before"
|
|||
COM_CONFIG_FIELD_VALUE_CACHE_OFF="OFF - Caching disabled"
|
||||
COM_CONFIG_FIELD_VALUE_CACHE_CONSERVATIVE="ON - Conservative caching"
|
||||
COM_CONFIG_FIELD_VALUE_CACHE_PROGRESSIVE="ON - Progressive caching"
|
||||
COM_CONFIG_FIELD_VALUE_DEVELOPMENT="Development"
|
||||
COM_CONFIG_FIELD_VALUE_DISPLAY_OFFLINE_MESSAGE_CUSTOM="Use Custom Message"
|
||||
COM_CONFIG_FIELD_VALUE_DISPLAY_OFFLINE_MESSAGE_LANGUAGE="Use Site Language Default Message"
|
||||
COM_CONFIG_FIELD_VALUE_ENTIRE_SITE="Entire Site"
|
||||
|
|
|
@ -66,17 +66,12 @@ switch ($config->error_reporting)
|
|||
break;
|
||||
|
||||
case 'maximum':
|
||||
case 'development': // <= Stays for backward compatibility, @TODO: can be removed in 5.0
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
break;
|
||||
|
||||
case 'development':
|
||||
error_reporting(-1);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
error_reporting($config->error_reporting);
|
||||
ini_set('display_errors', 1);
|
||||
|
|
|
@ -61,17 +61,12 @@ switch ($config->error_reporting)
|
|||
break;
|
||||
|
||||
case 'maximum':
|
||||
case 'development': // <= Stays for backward compatibility, @TODO: can be removed in 5.0
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
break;
|
||||
|
||||
case 'development':
|
||||
error_reporting(-1);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
error_reporting($config->error_reporting);
|
||||
ini_set('display_errors', 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user