1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Change session from flash to now where needed

This commit is contained in:
Hillel Coren 2017-06-29 17:17:33 +03:00
parent 980c70f700
commit 277e564645
4 changed files with 4 additions and 4 deletions

View File

@ -455,7 +455,7 @@ class AccountController extends BaseController
if ($accountGateway = $account->getGatewayConfig(GATEWAY_STRIPE)) {
if (! $accountGateway->getPublishableStripeKey()) {
Session::flash('warning', trans('texts.missing_publishable_key'));
Session::now('warning', trans('texts.missing_publishable_key'));
}
}

View File

@ -84,7 +84,7 @@ class AccountGatewayController extends BaseController
public function create()
{
if (! \Request::secure() && ! Utils::isNinjaDev()) {
Session::flash('warning', trans('texts.enable_https'));
Session::now('warning', trans('texts.enable_https'));
}
$account = Auth::user()->account;

View File

@ -131,7 +131,7 @@ class BankAccountController extends BaseController
try {
$data = $this->bankAccountService->parseOFX($file);
} catch (\Exception $e) {
Session::flash('error', trans('texts.ofx_parse_failed'));
Session::now('error', trans('texts.ofx_parse_failed'));
Utils::logError($e);
return view('accounts.import_ofx');

View File

@ -314,7 +314,7 @@ class TaskController extends BaseController
{
if (! Auth::user()->account->timezone) {
$link = link_to('/settings/localization?focus=timezone_id', trans('texts.click_here'), ['target' => '_blank']);
Session::flash('warning', trans('texts.timezone_unset', ['link' => $link]));
Session::now('warning', trans('texts.timezone_unset', ['link' => $link]));
}
}
}