1
0
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:
Nathan Guse 2012-09-06 18:27:49 -05:00
parent 81f7f28cc3
commit c93b3827dc
2 changed files with 5 additions and 2 deletions

View File

@ -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');

View File

@ -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;