From c585bda2ded3c64dd800d3a097fe807800784506 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 5 Mar 2011 18:20:19 +0000 Subject: [PATCH] Fix: Add warning for uncomplete setup --- htdocs/user/clicktodial.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/htdocs/user/clicktodial.php b/htdocs/user/clicktodial.php index 49c701bcc06..b4d7cfc266c 100644 --- a/htdocs/user/clicktodial.php +++ b/htdocs/user/clicktodial.php @@ -119,7 +119,12 @@ if ($_GET["id"]) { print "".'ClickToDial URL'; print ''; - print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); + if (empty($conf->global->CLICKTODIAL_URL)) + { + $langs->load("errors"); + print ''.$langs->trans("ErrorModuleSetupNotComplete").''; + } + else print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); print ''; print ''; } @@ -155,7 +160,12 @@ if ($_GET["id"]) { print "".'ClickToDial URL'; print ''; - print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); + if (empty($conf->global->CLICKTODIAL_URL)) + { + $langs->load("errors"); + print ''.$langs->trans("ErrorModuleSetupNotComplete").''; + } + else print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); print ''; print ''; }