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:
parent
980c70f700
commit
277e564645
@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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');
|
||||
|
@ -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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user