1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-08 11:57:29 +02:00

Downloads plugin compatibility with PHP 5.4, 5.5

- FIX: Avoided use of PHP 5.6 feature in Downloads plugin's
       NginxSecureLinkMd5Decorator

Fixes: #3135
This commit is contained in:
Nick Liu 2018-05-23 19:33:35 -05:00
parent d7e3caae83
commit 25310a901b
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -6,14 +6,14 @@ class NginxSecureLinkMd5Decorator implements SecureLinkDecorator
protected $url = null; protected $url = null;
protected $prefs = array(); protected $prefs = array();
const SUPPORTED_VARIABLES = array( public static $SUPPORTED_VARIABLES = array(
'$secure_link_expires', '$secure_link_expires',
'$uri', '$uri',
'$remote_addr' '$remote_addr'
); );
static function supported_variables() { static function supported_variables() {
return self::SUPPORTED_VARIABLES; return self::$SUPPORTED_VARIABLES;
} }
function __construct($url, $preferences) function __construct($url, $preferences)