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); }