X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=install%2Fcivicrm.php;h=debefb2925b073d0778f5299f764d52e7019738e;hb=156fd9b9cc7cb9fc9c719c280484481017f21373;hp=c4063acb9a4120dcb92fae2529ee6aed9806e1e9;hpb=bd6d55934fb8cec290b612b6c2d3d028800744ad;p=civicrm-core.git diff --git a/install/civicrm.php b/install/civicrm.php index c4063acb9a..debefb2925 100644 --- a/install/civicrm.php +++ b/install/civicrm.php @@ -1,9 +1,9 @@ query("SET NAMES utf8"); + $db->query("SET NAMES utf8"); + if (!$lineMode) { $string = file_get_contents($fileName); @@ -165,6 +186,11 @@ function civicrm_source($dsn, $fileName, $lineMode = FALSE) { } } +/** + * @param $config + * + * @return string + */ function civicrm_config(&$config) { global $crmPath, $comPath; global $compileDir; @@ -217,6 +243,9 @@ function civicrm_config(&$config) { return trim($str); } +/** + * @return string + */ function civicrm_cms_base() { global $installType; @@ -267,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';