From 5688656174bc9fce25a60b8d78a8b7a0b3ef2709 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 8 Mar 2017 18:01:58 -0800 Subject: [PATCH] Fix more PHP 5.3 problems. Signed-off-by: Edward Z. Yang --- library/HTMLPurifier/AttrDef/CSS/Color.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/library/HTMLPurifier/AttrDef/CSS/Color.php b/library/HTMLPurifier/AttrDef/CSS/Color.php index cecfbb8c..d7287a00 100644 --- a/library/HTMLPurifier/AttrDef/CSS/Color.php +++ b/library/HTMLPurifier/AttrDef/CSS/Color.php @@ -59,19 +59,19 @@ class HTMLPurifier_AttrDef_CSS_Color extends HTMLPurifier_AttrDef * Allowed types for values : * parameter_position => [type => max_value] */ - $allowed_types = [ - 1 => ['percentage' => 100, 'integer' => 255], - 2 => ['percentage' => 100, 'integer' => 255], - 3 => ['percentage' => 100, 'integer' => 255], - ]; + $allowed_types = array( + 1 => array('percentage' => 100, 'integer' => 255), + 2 => array('percentage' => 100, 'integer' => 255), + 3 => array('percentage' => 100, 'integer' => 255), + ); $allow_different_types = false; if (strpos($function, 'hsl') !== false) { - $allowed_types = [ - 1 => ['integer' => 360], - 2 => ['percentage' => 100], - 3 => ['percentage' => 100], - ]; + $allowed_types = array( + 1 => array('integer' => 360), + 2 => array('percentage' => 100), + 3 => array('percentage' => 100), + ); $allow_different_types = true; } -- 2.11.4.GIT