Commit 7f6349db authored by totten's avatar totten

CRM-16373 - Remove `config->civiRelativeURL` and `civicrm_variables.tpl`

These appear to be an outmoded technique for building links in JS.  We now
CRM.url(), which does a better job anyway (w/clean or dirty URLs).
parent 10e2f48b
......@@ -68,16 +68,6 @@ class CRM_Core_BAO_ConfigSetting {
public static function add(&$params) {
self::fixParams($params);
// also set a template url so js files can use this
// CRM-6194
$params['civiRelativeURL'] = CRM_Utils_System::url('CIVI_BASE_TEMPLATE');
$params['civiRelativeURL']
= str_replace(
'CIVI_BASE_TEMPLATE',
'',
$params['civiRelativeURL']
);
$domain = new CRM_Core_DAO_Domain();
$domain->id = CRM_Core_Config::domainID();
$domain->find(TRUE);
......
{* This contains the variables that various jQuery functions need, for instance to define the ajax url to call *}
<script type="text/javascript">
civicrm = new Object;
civicrm.config = {ldelim}
relativeURL : "{$config->civiRelativeURL}",
frameworkBaseURL : "{$config->userFrameworkBaseURL}",
frameworkResourceURL: "{$config->userFrameworkResourceURL}",
restURL = "{crmURL p='civicrm/ajax/rest' q='json=1' h=0}"
{rdelim};
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment