mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[ticket/11092] phpbb_gen_download_links strict standards errors
Two strict standards errors in phpbb_gen_download_links PHPBB3-11092
This commit is contained in:
parent
81f7f28cc3
commit
c93b3827dc
@ -159,8 +159,10 @@ class compress
|
||||
|
||||
/**
|
||||
* Return available methods
|
||||
*
|
||||
* @return array Array of strings of available compression methods (.tar, .tar.gz, .zip, etc.)
|
||||
*/
|
||||
function methods()
|
||||
public static function methods()
|
||||
{
|
||||
$methods = array('.tar');
|
||||
$available_methods = array('.tar.gz' => 'zlib', '.tar.bz2' => 'bz2', '.zip' => 'zlib');
|
||||
|
@ -1410,7 +1410,8 @@ function phpbb_gen_download_links($param_key, $param_val, $phpbb_root_path, $php
|
||||
|
||||
foreach ($methods as $method)
|
||||
{
|
||||
$type = array_pop(explode('.', $method));
|
||||
$exploded = explode('.', $method);
|
||||
$type = array_pop($exploded);
|
||||
$params = array('archive' => $method);
|
||||
$params[$param_key] = $param_val;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user