aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs.inc.php')
-rw-r--r--langs.inc.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/langs.inc.php b/langs.inc.php
index 7409f5b9d..db65777de 100644
--- a/langs.inc.php
+++ b/langs.inc.php
@@ -48,6 +48,21 @@ $domains_lang = array(
* Redirect to a localized path, depending on incoming TLD.
* Only manages redirections to main home path.
*
+ * @param string $tld
+ * @param array $domains_lang
+ * @param string $vhost
+ *
+ * @return void
+*/
+function tld_redirect($tld, $domains_lang, $vhost)
+{
+ domain_redirect('mageia.' . $tld, $domains_lang, $vhost);
+}
+
+/**
+ * Redirect to a localized path, depending on incoming full domain.
+ * Only manages redirections to main home path.
+ *
* @param string $host
* @param array $domains_lang
* @param string $vhost