Projet

Général

Profil

« Précédent | Suivant » 

Révision 472455e8

Ajouté par jim-p il y a environ 10 ans

Work around some quirks in global handling to show filter rule descriptions in their own row/column when configured for that behavior.

Voir les différences:

etc/inc/filter_log.inc
36 36

  
37 37
require 'config.inc';
38 38

  
39
global $buffer_rules_rdr, $buffer_rules_normal;
40
$buffer_rules_rdr = array();
41
$buffer_rules_normal = array();
42

  
39 43
/* format filter logs */
40 44
function conv_log_filter($logfile, $nentries, $tail = 50, $filtertext = "", $filterinterface = null) {
41 45
	global $config, $g;
......
240 244

  
241 245
function buffer_rules_load() {
242 246
	global $g, $buffer_rules_rdr, $buffer_rules_normal;
243

  
244 247
	unset($buffer, $buffer_rules_rdr, $buffer_rules_normal);
248
	/* Redeclare globals after unset to work around PHP */
249
	global $buffer_rules_rdr, $buffer_rules_normal;
245 250
	$buffer_rules_rdr = array();
246 251
	$buffer_rules_normal = array();
247 252

  

Formats disponibles : Unified diff