X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=install%2Findex.php;h=2367eab45b46a1657f2d995e857f3dac92c19be2;hb=3b1194f14421cb1bee9da7eca5e5083761826e24;hp=117637920012273c6cd044550b42b3e3e7c1d1f1;hpb=f1506d9e24918b85224667cb2f869201bef4da45;p=civicrm-core.git diff --git a/install/index.php b/install/index.php index 1176379200..2367eab45b 100644 --- a/install/index.php +++ b/install/index.php @@ -223,7 +223,7 @@ if ($alreadyInstalled) { } $docLink = CRM_Utils_System::docURL2('Installation and Upgrades', FALSE, ts('Installation Guide'), NULL, NULL, "wiki"); - $errorMsg = ts("CiviCRM has already been installed. ", array(1 => $settings_directory, 2 => $docLink)); + $errorMsg = ts("CiviCRM has already been installed. ", array(1 => $settings_directory, 2 => $docLink)); errorDisplayPage($errorTitle, $errorMsg, FALSE); } @@ -727,6 +727,13 @@ class InstallRequirements { ts("JSON support not included in PHP."), )); + // check for Multibyte support such as mb_substr. Required for proper handling of Multilingual setups. + $this->requireFunction('mb_substr', array( + ts("PHP Configuration"), + ts("Multibyte support"), + ts("Multibyte support not enabled in PHP."), + )); + // Check for xcache_isset and emit warning if exists $this->checkXCache(array( ts("PHP Configuration"), @@ -1831,14 +1838,21 @@ function getSiteDir($cmsPath, $str) { * @param $showRefer */ function errorDisplayPage($errorTitle, $errorMsg, $showRefer = TRUE) { + + // Add a link to the documentation if ($showRefer) { - $docLink = CRM_Utils_System::docURL2('Installation and Upgrades', FALSE, 'Installation Guide', NULL, NULL, "wiki"); + if (is_callable(array('CRM_Utils_System', 'docURL2'))) { + $docLink = CRM_Utils_System::docURL2('Installation and Upgrades', FALSE, 'Installation Guide', NULL, NULL, "wiki"); + } + else { + $docLink = ''; + } if (function_exists('ts')) { - $errorMsg .= '

' . ts("Refer to the online documentation for more information", array(1 => "href='$docLink'")) . '

'; + $errorMsg .= '

' . ts("Refer to the online documentation for more information: ") . $docLink . '

'; } else { - $errorMsg .= '

' . sprintf("Refer to the online documentation for more information", "href='$docLink'") . '

'; + $errorMsg .= '

' . 'Refer to the online documentation for more information: ' . $docLink . '

'; } }