From b87b6e2377792d01bec40e0c6a1b1cf94b39af1d Mon Sep 17 00:00:00 2001
From: Filip Komar
Date: Sun, 5 Jan 2014 06:44:56 +0000
Subject: function simplified with global variable scope of
---
en/doc/index.php | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
(limited to 'en/doc/index.php')
diff --git a/en/doc/index.php b/en/doc/index.php
index a36032396..fcc7a5dd3 100644
--- a/en/doc/index.php
+++ b/en/doc/index.php
@@ -3,8 +3,9 @@ define('HLANG', true);
require '../../langs.php';
_lang_load($locale, 'documentation');
-function doc_list($languages, $link, $locale)
+function doc_list($languages, $link)
{
+ global $locale;
$your_language = '';
$others = '';
$text_others = '';
@@ -65,7 +66,7 @@ function doc_list($languages, $link, $locale)
'ru' => 'Pусский',
'uk' => 'Українська',
);
- doc_list($mga3_installer, '%s', $locale);
+ doc_list($mga3_installer, '%s');
?>
@@ -76,7 +77,7 @@ function doc_list($languages, $link, $locale)
'et' => 'Eesti',
'fr' => 'Français',
);
- doc_list($mga3_control_center, '
%s', $locale);
+ doc_list($mga3_control_center, '
%s');
?>
@@ -94,7 +95,7 @@ function doc_list($languages, $link, $locale)
'pt_br' => 'Português do Brasil',
'uk' => 'Українська',
);
- doc_list($mga2_installer, '%s', $locale);
+ doc_list($mga2_installer, '%s');
?>
--
cgit v1.2.1