Skip to content

Commit

Permalink
Update checking safe mode notification.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Feb 11, 2015
1 parent fd7dcd1 commit 93f8ef5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Bootstrap/NotifyIfSafeMode.php
Expand Up @@ -12,12 +12,10 @@ class NotifyIfSafeMode
*/
public function bootstrap(Application $app)
{
$app['events']->listen('orchestra.extension: booted', function () use ($app) {
if ('on' === $app['session']->get('orchestra.safemode')) {
$app['orchestra.messages']->extend(function ($messages) {
$messages->add('info', trans('orchestra/foundation::response.safe-mode'));
});
}
});
if ($app['orchestra.extension.mode']->check()) {
$app['orchestra.messages']->extend(function ($messages) {
$messages->add('info', trans('orchestra/foundation::response.safe-mode'));
});
}
}
}

0 comments on commit 93f8ef5

Please sign in to comment.