Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
71e50169
Commit
71e50169
authored
2 months ago
by
benjamin
Browse files
Options
Downloads
Patches
Plain Diff
add deprecation message to ConfigSetting::doSiteMove
parent
71e398f3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/BAO/ConfigSetting.php
+6
-1
6 additions, 1 deletion
CRM/Core/BAO/ConfigSetting.php
bin/migrate/move.php
+1
-0
1 addition, 0 deletions
bin/migrate/move.php
with
7 additions
and
1 deletion
CRM/Core/BAO/ConfigSetting.php
+
6
−
1
View file @
71e50169
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
bin/migrate/move.php
+
1
−
0
View file @
71e50169
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment