diff --git a/components/ILIAS/News/classes/class.ilNewsForContextBlockGUI.php b/components/ILIAS/News/classes/class.ilNewsForContextBlockGUI.php index ef01df98b5c9..bbdb4e99ecff 100755 --- a/components/ILIAS/News/classes/class.ilNewsForContextBlockGUI.php +++ b/components/ILIAS/News/classes/class.ilNewsForContextBlockGUI.php @@ -57,6 +57,7 @@ class ilNewsForContextBlockGUI extends ilBlockGUI protected bool $prevent_initial_loading = false; protected NewsCollection $collection; + protected ilLogger $logger; public function __construct() { @@ -64,6 +65,7 @@ public function __construct() parent::__construct(); + $this->logger = $DIC->logger()->news(); $this->help = $DIC["ilHelp"]; $this->settings = $DIC->settings(); $this->tabs = $DIC->tabs();