aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2017-07-17 22:31:31 +0200
committerfilip <filip.komar@gmail.com>2017-07-17 22:31:31 +0200
commit71449d0920edea99922320d19b34e969484e50b1 (patch)
tree3864457c3541dd4725528d0acbda47a2844e86f7
parent680ecf4ea1aaac31285cf2eefd51fc68022cd55d (diff)
downloadwww-71449d0920edea99922320d19b34e969484e50b1.tar
www-71449d0920edea99922320d19b34e969484e50b1.tar.gz
www-71449d0920edea99922320d19b34e969484e50b1.tar.bz2
www-71449d0920edea99922320d19b34e969484e50b1.tar.xz
www-71449d0920edea99922320d19b34e969484e50b1.zip
fix for mga#21264
just cut off the text before number
-rw-r--r--en/downloads/get/index.php4
1 files 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') {
<p><?php
echo
sprintf(_r('Your download of %s should start within a few seconds'), '<em class="tag">' . $product['name'] . '</em>' . ($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, <a href="%s" rel="nofollow" title="%s">click here</a>.'), $download, $download),
sprintf( '%s', ($product['magnet'] ? ' | <a href="' . $product['magnet'] .'">Magnet</a>' : '' ));
?></p>