From f7a9471a0df3da2d49ef86f30bbe7889e13a4e85 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 7 Oct 2013 13:09:51 +0100 Subject: [PATCH] CRM_Extension_Container_Basic - Display warning if no resource URL is defined --- CRM/Extension/Container/Basic.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CRM/Extension/Container/Basic.php b/CRM/Extension/Container/Basic.php index ee503fd803..cbed89e65c 100644 --- a/CRM/Extension/Container/Basic.php +++ b/CRM/Extension/Container/Basic.php @@ -136,6 +136,16 @@ class CRM_Extension_Container_Basic implements CRM_Extension_Container_Interface * {@inheritdoc} */ public function getResUrl($key) { + if (! $this->baseUrl) { + CRM_Core_Session::setStatus( + ts('Failed to determine URL for extension (%1). Please update Resource URLs.', + array( + 1 => $key, + 2 => CRM_Utils_System::url('civicrm/admin/setting/url', 'reset=1'), + ) + ) + ); + } return $this->baseUrl . $this->getRelUrl($key); } -- 2.25.1