Skip to content

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

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

TheWitness wants to merge 2 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:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The single-line replacement preserves behavior and has no identified blocking issues.

No open issues 🎉

What changed in this PR

Replaces a deprecated Cacti request-helper alias with its canonical function, preserving existing behavior.

Changes:

  • Uses get_request_var() to retrieve local_graph_id, leaving numeric validation unchanged.
File Description
top_graph_header.php Replaces the deprecated request-helper call.

Review effort: Balanced

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@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