mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 11:14:37 -04:00
Clean up ifs
This commit is contained in:
parent
acfb3ac3af
commit
bea7072f22
@ -730,16 +730,11 @@ class BaseController extends Controller
|
|||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
if (Ninja::isSelfHost()) {
|
//pass report errors bool to front end
|
||||||
$data['report_errors'] = $account->report_errors;
|
$data['report_errors'] = Ninja::isSelfHost() ? $account->report_errors : true;
|
||||||
} else {
|
|
||||||
$data['report_errors'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$data['rc'] = '';
|
//pass referral code to front end
|
||||||
|
$data['rc'] = request()->has('rc') ? request()->input('rc') : '';
|
||||||
if(request()->has('rc'))
|
|
||||||
$data['rc'] = request()->input('rc');
|
|
||||||
|
|
||||||
$this->buildCache();
|
$this->buildCache();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user