| @@ -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 | } |