mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ticket/11103
This commit is contained in:
commit
b58ef116e1
3 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ class phpbb_template_filter extends php_user_filter
|
|||
|
||||
*/
|
||||
|
||||
$data = preg_replace('~(?<!^)(<\?php(?:(?<!\?>).)+(?<!/\*\*/)\?>)$~m', "$1\n", $data);
|
||||
$data = preg_replace('~(?<!^)(<\?php.+(?<!/\*\*/)\?>)$~m', "$1\n", $data);
|
||||
$data = str_replace('/**/?>', "?>\n", $data);
|
||||
$data = str_replace('?><?php', '', $data);
|
||||
return $data;
|
||||
|
|
Loading…
Add table
Reference in a new issue