From 860651b5fd3432e801ac7450a41d93958a455da4 Mon Sep 17 00:00:00 2001 From: alexandergotts Date: Fri, 16 Feb 2024 18:03:03 +0100 Subject: [PATCH] Update Plugin_controller.php --- application/plugins/Plugin_controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/plugins/Plugin_controller.php b/application/plugins/Plugin_controller.php index 95fcb720..d43e9803 100644 --- a/application/plugins/Plugin_controller.php +++ b/application/plugins/Plugin_controller.php @@ -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); }