From 24571eeacd20595493c8077eb0e0c01ea814b9df Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Mon, 4 Mar 2013 17:39:05 +0530 Subject: [PATCH] CRM-12000 --- CRM/Upgrade/Incremental/php/FourThree.php | 5 +++++ templates/CRM/SMS/Page/Provider.tpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Upgrade/Incremental/php/FourThree.php b/CRM/Upgrade/Incremental/php/FourThree.php index 7be8cf3155ef..de4340f79193 100644 --- a/CRM/Upgrade/Incremental/php/FourThree.php +++ b/CRM/Upgrade/Incremental/php/FourThree.php @@ -68,6 +68,11 @@ function setPostUpgradeMessage(&$postUpgradeMessage, $rev) { elseif ($context == 'merged') { $postUpgradeMessage .= '
' . ts("The existing organization contact record for '{$orgName}' has marked as the default domain contact, and has been updated with information from your Organization Address and Contact Info settings."); } + + $providerExists = CRM_Core_DAO::singleValueQuery("SELECT id FROM civicrm_sms_provider LIMIT 1"); + if ($providerExists) { + $postUpgradeMessage .= '
' . ts('SMS providers were found to setup. Please note Clickatell / Twilio are now shipped as extensions and will require installing them to continue working. Extension could be downloaded and installed from github.', array(1 => 'https://github.com/civicrm/civicrm-core/tree/master/tools/extensions')); + } } if ($rev == '4.3.alpha2') { diff --git a/templates/CRM/SMS/Page/Provider.tpl b/templates/CRM/SMS/Page/Provider.tpl index b877240773d3..f165e3b7dc7b 100644 --- a/templates/CRM/SMS/Page/Provider.tpl +++ b/templates/CRM/SMS/Page/Provider.tpl @@ -25,7 +25,7 @@ *} {capture assign=wikiLink}{docURL page="Setting up a SMS Provider for CiviSMS" text="(How to add a SMS Provider)" resource="wiki"}{/capture}
- {ts}You can configure one or more SMS Providers for your CiviCRM installation. To learn more about the procedure to add a SMS Provider, refer{/ts} {$wikiLink} + {ts}You can configure one or more SMS Providers for your CiviCRM installation. To learn more about the procedure to install SMS extension and Provider, refer{/ts} {$wikiLink}
{if $action eq 1 or $action eq 2 or $action eq 8} {include file="CRM/SMS/Form/Provider.tpl"}