Skip to content

Replace deprecated get_request_var_request() with get_request_var() - #431

Open
TheWitness wants to merge 3 commits into
developfrom
fix/replace-deprecated-get-request-var
Open

TheWitness wants to merge 3 commits into
developfrom
fix/replace-deprecated-get-request-var

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Summary

get_request_var_request() is a deprecated (v1.0) alias of get_request_var() in Cacti core (lib/html_utility.php). This PR replaces the remaining call sites with the canonical function. Behavior is unchanged because the alias simply forwards to get_request_var().

Change

  • get_request_var_request(...) -> get_request_var(...)

Validation

  • php -l passes on changed file(s).
  • No remaining deprecated call sites after the change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 23, 2026 22:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Both replacements preserve the alias behavior, and no blocking issues were identified.

No open issues 🎉

What changed in this PR

Replaces deprecated request-helper calls in the Intropage administration tabs with Cacti’s canonical get_request_var() helper, preserving existing behavior.

Changes:

  • Updates the user and user-group settings tab checks to use get_request_var().
File Description
includes/​settings.php Replaces both deprecated helper calls used to determine the selected settings tab.

Review effort: Balanced

@sonarqubecloud

Copy link
Copy Markdown

@somethingwithproof somethingwithproof left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Approved.

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.

3 participants