PluginProbe
ShiftController Employee Shift Scheduling / 4.9.66
ShiftController Employee Shift Scheduling v4.9.66
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | sh4/notifications/html/admin/view/turnonoff.php +1 -3 4.9.964.9.66 View file →
@@ -5,9 +5,8 @@
5 5 public function __construct(
6 6 HC3_Hooks $hooks,
7 7 HC3_Ui $ui,
8 8 HC3_Enqueuer $enqueuer,
9 - HC3_Notificator $notificator,
10 9
11 10 HC3_Auth $auth,
12 11 HC3_IPermission $permission
13 12 )
@@ -16,9 +15,8 @@
16 15 $this->ui = $hooks->wrap( $ui );
17 16
18 17 $this->auth = $hooks->wrap( $auth );
19 18 $this->permission = $hooks->wrap($permission);
20 - $this->notificator = $hooks->wrap($notificator);
21 19 $this->enqueuer = $enqueuer;
22 20 }
23 21
24 22 public function render( $return )
@@ -56,10 +54,10 @@
56 54 }
57 55
58 56 $this->enqueuer->addScript('notifications', 'sh4/notifications/assets/js/skip-notifications.js?hcver=' . SH4_VERSION);
59 57
60 - $isOff = $this->notificator->isOff();
58 + $isOff = HC3_Session::instance()->getUserdata('noNotification');
61 59 $return = $this->ui->makeInputCheckbox( 'notifications_turnoff', '__Skip Notifications__', 1, $isOff );
62 60
63 61 return $return;
64 62 }
65 63 }