Skip to content

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

Merged
somethingwithproof merged 1 commit into
mainfrom
fix/replace-deprecated-get-request-var
Oct 24, 2026
Merged

somethingwithproof merged 1 commit into
mainfrom
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
@sonarqubecloud

Copy link
Copy Markdown

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

The replacements preserve the alias’s behavior, and no unresolved issues were identified.

No open issues 🎉

What changed in this PR

Replaces three deprecated request-helper calls with Cacti’s canonical get_request_var() function, preserving existing behavior.

Changes:

  • Updates the details pagination call.
  • Updates both row-count selector calls without changing arguments or surrounding logic.
File Description
slowlog.php Replaces three get_request_var_request() calls with get_request_var().

Review effort: Balanced

@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.

@somethingwithproof
somethingwithproof merged commit 34138d8 into main Oct 24, 2026
8 checks passed
@somethingwithproof
somethingwithproof deleted the fix/replace-deprecated-get-request-var branch October 24, 2026 07:11
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