Skip to content

Replace deprecated CRM_Core_BAO_Setting::getItem with Civi::settings() - #551

Merged
dontub merged 1 commit into
Project60:masterfrom
colemanw:replace-setting-getitem
Aug 28, 2026
Merged

Replace deprecated CRM_Core_BAO_Setting::getItem with Civi::settings()#551
dontub merged 1 commit into
Project60:masterfrom
colemanw:replace-setting-getitem

Conversation

@colemanw

Copy link
Copy Markdown
Contributor

Replaces calls to the older CRM_Core_BAO_Setting::getItem with the recommended alternative Civi::settings().

Replaces calls to the older `CRM_Core_BAO_Setting::getItem` with the recommended alternative `Civi::settings()`.
@colemanw

Copy link
Copy Markdown
Contributor Author

@dontub the settings named "menu_position" and "new_ui" are dangerously generic and should probably be renamed to something more specific. Note that since the 5.x series, settings only have one name and the "group name" is irrelevant/ignored.

@dontub
dontub merged commit ce0bd14 into Project60:master Aug 28, 2026
9 checks passed
@dontub

dontub commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Thanks @colemanw! I'll have a look at the settings key.

@colemanw
colemanw deleted the replace-setting-getitem branch August 28, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants