Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence du fichier includes/framework.php

Espaces de nommage

 Joomla\Site
 

Variables

 $config = new JConfig()
 
switch($config->error_reporting) if(!defined('JDEBUG')) if(empty($config->log_deprecated)) else
 

Documentation des variables

◆ $config

$config = new JConfig()

◆ else

if (JDEBUG||$config->error_reporting==='maximum') if (property_exists( $config, 'behind_loadbalancer') &&$config->behind_loadbalancer==1) else
Valeur initiale :
{
set_error_handler(['Joomla\CMS\Exception\ExceptionHandler', 'handleUserDeprecatedErrors'], E_USER_DEPRECATED)

Correctly set the allowing of IP Overrides if behind a trusted proxy/load balancer.

We need to do this as high up the stack as we can, as the default in is to $allowIpOverride = true which is the wrong default for a generic site NOT behind a trusted proxy/load balancer.