Skip to content

Commit

Permalink
Replace get_class() call, deprecated since PHP 8.3 (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergotts committed Feb 17, 2024
1 parent 342c2b3 commit 21fccac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/plugins/Plugin_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function __construct($login = TRUE)
$this->plugin_name = strtolower(get_class($this));

// Prevent this controller from being called directly
if (get_class() === get_class($this))
if (__CLASS__ === get_class($this))
{
redirect(site_url('/'), 'location', 301);
}
Expand Down

0 comments on commit 21fccac

Please sign in to comment.