From 25310a901b7176f1ed5e45c98b11c7e7928a125f Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Wed, 23 May 2018 19:33:35 -0500 Subject: [PATCH] Downloads plugin compatibility with PHP 5.4, 5.5 - FIX: Avoided use of PHP 5.6 feature in Downloads plugin's NginxSecureLinkMd5Decorator Fixes: #3135 --- .../download/handlers/NginxSecureLinkMd5Decorator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/download/handlers/NginxSecureLinkMd5Decorator.php b/e107_plugins/download/handlers/NginxSecureLinkMd5Decorator.php index 7e36cbace..a3b62c955 100644 --- a/e107_plugins/download/handlers/NginxSecureLinkMd5Decorator.php +++ b/e107_plugins/download/handlers/NginxSecureLinkMd5Decorator.php @@ -6,14 +6,14 @@ class NginxSecureLinkMd5Decorator implements SecureLinkDecorator protected $url = null; protected $prefs = array(); - const SUPPORTED_VARIABLES = array( + public static $SUPPORTED_VARIABLES = array( '$secure_link_expires', '$uri', '$remote_addr' ); static function supported_variables() { - return self::SUPPORTED_VARIABLES; + return self::$SUPPORTED_VARIABLES; } function __construct($url, $preferences)