X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=install%2Fcivicrm.php;h=c4063acb9a4120dcb92fae2529ee6aed9806e1e9;hb=100fef9d739cd6f5377269d230510c328e484c8c;hp=1f8e0492dd03e42d6ac9e6e33539779d35273c86;hpb=8960f050bc875db30ec426da1c95a281e5d2bb50;p=civicrm-core.git diff --git a/install/civicrm.php b/install/civicrm.php index 1f8e0492dd..02b50b994c 100644 --- a/install/civicrm.php +++ b/install/civicrm.php @@ -1,9 +1,9 @@ getMessage()); } + $db->query("SET NAMES utf8"); + + $db->query("SET NAMES utf8"); if (!$lineMode) { $string = file_get_contents($fileName); @@ -164,6 +186,11 @@ function civicrm_source($dsn, $fileName, $lineMode = FALSE) { } } +/** + * @param $config + * + * @return string + */ function civicrm_config(&$config) { global $crmPath, $comPath; global $compileDir; @@ -216,6 +243,9 @@ function civicrm_config(&$config) { return trim($str); } +/** + * @return string + */ function civicrm_cms_base() { global $installType; @@ -266,6 +296,9 @@ function civicrm_cms_base() { return $url . $baseURL; } +/** + * @return string + */ function civicrm_home_url() { $drupalURL = civicrm_cms_base(); return $drupalURL . 'index.php?q=civicrm';