Skip to content
Snippets Groups Projects
Commit f7a9471a authored by totten's avatar totten
Browse files

CRM_Extension_Container_Basic - Display warning if no resource URL is defined

parent 2dd6dd94
No related branches found
No related tags found
No related merge requests found
......@@ -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 <a href="%2">Resource URLs</a>.',
array(
1 => $key,
2 => CRM_Utils_System::url('civicrm/admin/setting/url', 'reset=1'),
)
)
);
}
return $this->baseUrl . $this->getRelUrl($key);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment