X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSystem.php;h=41646c5ef31a8ee0cf6bf1c50f496124721222d9;hb=293d50b4211dcd40bd421da0047f7fb4833fdcbf;hp=83291c00cd143bb0063049766472e74111424f79;hpb=443c556ff711a1254d4cd3b954558ca533a36870;p=civicrm-core.git diff --git a/api/v3/System.php b/api/v3/System.php index 83291c00cd..41646c5ef3 100644 --- a/api/v3/System.php +++ b/api/v3/System.php @@ -1,7 +1,7 @@ find(TRUE); + + if ($domain->locales) { + $locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales); + CRM_Core_I18n_Schema::rebuildMultilingualSchema($locales); + return civicrm_api3_create_success(1); + } + else { + throw new API_Exception('Cannot call rebuild Multilingual schema on non Multilingual database'); + } +}