diff options
Diffstat (limited to 'en/downloads/get/index.php')
-rw-r--r-- | en/downloads/get/index.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index 62674f79d..6048bc149 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -201,6 +201,9 @@ if (!$download) { if(!isset($product['magnet'])) { $product['magnet'] = null; } +if(!isset($product['obsolete'])) { + $product['obsolete'] = null ; +} preg_match("/\D*(\d+.*)/", $product['size'], $product_size); if ($debug) $js_redirect = null; @@ -227,11 +230,18 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') { <?php if (!is_null($download)): ?> <div class="yui-g"><div class="para" style="padding-top: 2em;"> <p><?php + +if($product['obsolete']) { + echo '<div class="alert alert-danger" role="alert">'; + _g('Warning !', null, 'h4'); + _g('This file is obsolete, please <a %s>download</a> the lastest version.', 'href="../" class="alert-link"', 'p'); + echo '</div>'; +} 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[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>' : '' )); + sprintf( '%s', ($product['magnet'] && $torrent ? ' | <a href="' . $product['magnet'] .'">Magnet</a>' : '' )); ?></p> <div class="dlinfo"> |