inc/utils.php : report de r20217 (complément de r20212). ajout d'un test dans spip_log() au cas où un plugin fait un spip_log dans son fichier d'option alors que la constante n'est pas encore déclarée (marcimat).

svn/attic/tags/spip-3.0.6/20319
denisb 11 years ago
parent 5e5bc09f5a
commit 7ff9df5e54

@ -193,7 +193,7 @@ function spip_log($message=NULL, $name=NULL) {
if (!isset($regs[2]) OR !$niveau = $regs[2])
$niveau = _LOG_INFO;
if ($niveau <= _LOG_FILTRE_GRAVITE) {
if ($niveau <= (defined('_LOG_FILTRE_GRAVITE') ? _LOG_FILTRE_GRAVITE : _LOG_INFO_IMPORTANTE)) {
if (!$pre){
$pre = array(
_LOG_HS=>'HS:',

Loading…
Cancel
Save