From 435d9d0f5e1e25edf579071703d458375a975ef9 Mon Sep 17 00:00:00 2001 From: filip Date: Thu, 30 Jun 2016 22:18:45 +0200 Subject: common footer added to last two active pages + + small fix for local locale parse error --- 404.php | 8 +++++--- en/4/download_index.php | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/404.php b/404.php index 4ae1d9f8a..1e71d814d 100644 --- a/404.php +++ b/404.php @@ -2,10 +2,10 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require 'langs.php'; // needs absolute path in some form to be link depth independent -$dictionary = read_translation_file($locale, '404'); +$locale = ($locale == '404.php' ? 'en' : $locale); +$dictionary = read_translation_file($locale, array('404', 'common_footer')); header('HTTP/1.0 404 Not Found'); header('Status: 404 Not Found'); -$locale = ($locale == '404' ? 'en' : $locale); ?> @@ -15,12 +15,13 @@ $locale = ($locale == '404' ? 'en' : $locale); +

-
+
@@ -32,5 +33,6 @@ $locale = ($locale == '404' ? 'en' : $locale);
+ diff --git a/en/4/download_index.php b/en/4/download_index.php index 4bf250006..f5335621d 100755 --- a/en/4/download_index.php +++ b/en/4/download_index.php @@ -4,7 +4,7 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../../langs.php'; -$dictionary = read_translation_file($locale, '4'); +$dictionary = read_translation_file($locale, array('4', 'common_footer')); require '../downloads/get/lib.php'; function get_mageia_image_file_name($variant = null, $arch, $medium, $ext) @@ -51,13 +51,14 @@ function dl_link($variant = null, $arch = 'i586', $medium, $torrent = false, $un +

Mageia 4.1')?>

-
+
@@ -261,5 +262,6 @@ function dl_link($variant = null, $arch = 'i586', $medium, $torrent = false, $un
+ -- cgit v1.2.1