From 51bd0c3fcab970fff3b7ecc1e9307bc8c259d39a Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 19 Dec 2004 08:20:30 +0000 Subject: [PATCH] make gpltrans url configurable git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8434 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/translate/functions.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/translate/functions.php b/plugins/translate/functions.php index 434e284a..73bddfd4 100644 --- a/plugins/translate/functions.php +++ b/plugins/translate/functions.php @@ -673,7 +673,13 @@ function translate_form_intertran($message) { * @access private */ function translate_form_gpltrans($message) { - translate_new_form('http://www.translator.cx/cgi-bin/gplTrans'); + global $translate_gpltrans_url; + + // make sure that it is not empty + if ($translate_gpltrans_url=='') + $translate_gpltrans_url='http://www.translator.cx/cgi-bin/gplTrans'; + + translate_new_form($translate_gpltrans_url); echo '