Skip to content
Snippets Groups Projects
Commit 71e50169 authored by benjamin's avatar benjamin
Browse files

add deprecation message to ConfigSetting::doSiteMove

parent 71e398f3
Branches
Tags
No related merge requests found
......@@ -245,12 +245,17 @@ class CRM_Core_BAO_ConfigSetting {
/**
* @param array $defaultValues
* @deprecated
*
* Does anyone use this function? Does it do what you expect?
*
* @return string
* @throws Exception
*/
public static function doSiteMove($defaultValues = []) {
$moveStatus = ts('Beginning site move process...') . '<br />';
$deprecatedMessage = ts('WARNING: doSiteMove is deprecated and might not do what you want');
\CRM_Core_Error::deprecatedWarning($deprecatedMessage);
$moveStatus = ts('Beginning site move process...') . '<br />' . $deprecatedMessage . '<br />';
$settings = Civi::settings();
foreach (array_merge(self::getPathSettings(), self::getUrlSettings()) as $key) {
......
......@@ -28,6 +28,7 @@ function run() {
CRM_Utils_System::authenticateAbort("User does not have required permission (administer CiviCRM).\n", TRUE);
}
// doSiteMove is deprecated and slated for removal
require_once 'CRM/Core/BAO/ConfigSetting.php';
$moveStatus = CRM_Core_BAO_ConfigSetting::doSiteMove();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment