From 71449d0920edea99922320d19b34e969484e50b1 Mon Sep 17 00:00:00 2001 From: filip Date: Mon, 17 Jul 2017 22:31:31 +0200 Subject: fix for mga#21264 just cut off the text before number --- en/downloads/get/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index 24188e4e6..8f10eece9 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -201,7 +201,7 @@ if (!$download) { if(!isset($product['magnet'])) { $product['magnet'] = null; } - +preg_match("/\D*(\d+.*)/", $product['size'], $product_size); if ($debug) $js_redirect = null; @@ -229,7 +229,7 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') {

' . $product['name'] . '' . ($torrent ? ' (torrent)' : '')), - ' ', sprintf(_r('(download size is about %s).'), $product['size']), + ' ', sprintf(_r('(download size is about %s).'), $product_size[1]), ' ', sprintf(_r('If the download does not start, click here.'), $download, $download), sprintf( '%s', ($product['magnet'] ? ' | Magnet' : '' )); ?>

-- cgit v1.2.1