diff --git a/plugin/coursehomenotify/CourseHomeNotifyPlugin.php b/plugin/coursehomenotify/CourseHomeNotifyPlugin.php
index 6eabf07e16..03399e20f3 100644
--- a/plugin/coursehomenotify/CourseHomeNotifyPlugin.php
+++ b/plugin/coursehomenotify/CourseHomeNotifyPlugin.php
@@ -28,32 +28,6 @@ class CourseHomeNotifyPlugin extends Plugin
$this->setCourseSettings();
}
- /**
- * Set the course settings
- */
- private function setCourseSettings()
- {
- if ('true' !== $this->get(self::SETTING_ENABLED)) {
- return;
- }
-
- $name = $this->get_name();
-
- $button = Display::toolbarButton(
- $this->get_lang('SetNotification'),
- api_get_path(WEB_PLUGIN_PATH).$name.'/configure.php?'.api_get_cidreq(),
- 'cog',
- 'primary'
- );
-
- $this->course_settings = [
- [
- 'name' => '
'.$this->get_comment().'
'.$button.'
',
- 'type' => 'html',
- ],
- ];
- }
-
/**
* @return CourseHomeNotifyPlugin|null
*/
@@ -225,4 +199,30 @@ class CourseHomeNotifyPlugin extends Plugin
return $modal;
}
+
+ /**
+ * Set the course settings.
+ */
+ private function setCourseSettings()
+ {
+ if ('true' !== $this->get(self::SETTING_ENABLED)) {
+ return;
+ }
+
+ $name = $this->get_name();
+
+ $button = Display::toolbarButton(
+ $this->get_lang('SetNotification'),
+ api_get_path(WEB_PLUGIN_PATH).$name.'/configure.php?'.api_get_cidreq(),
+ 'cog',
+ 'primary'
+ );
+
+ $this->course_settings = [
+ [
+ 'name' => ''.$this->get_comment().'
'.$button.'
',
+ 'type' => 'html',
+ ],
+ ];
+ }
}
diff --git a/plugin/coursehomenotify/Entity/NotificationRelUser.php b/plugin/coursehomenotify/Entity/NotificationRelUser.php
index 33757f0603..7618bb9179 100644
--- a/plugin/coursehomenotify/Entity/NotificationRelUser.php
+++ b/plugin/coursehomenotify/Entity/NotificationRelUser.php
@@ -98,4 +98,4 @@ class NotificationRelUser
return $this;
}
-}
\ No newline at end of file
+}