diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index fdca9cf3a5fb..b1c4ab74ddd3 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2296,6 +2296,7 @@ $LANG = array( 'exclusive' => 'Exclusive', 'postal_city_state' => 'Postal/City/State', 'phantomjs_help' => 'In certain cases the app uses :link_phantom to generate the PDF, install :link_docs to generate it locally.', + 'phantomjs_local' => 'Using local PhantomJS', ); diff --git a/resources/views/accounts/email_settings.blade.php b/resources/views/accounts/email_settings.blade.php index c7dfeebf898f..ad0bb97f6065 100644 --- a/resources/views/accounts/email_settings.blade.php +++ b/resources/views/accounts/email_settings.blade.php @@ -30,10 +30,10 @@ {!! Former::checkbox('pdf_email_attachment') ->text(trans('texts.enable')) - ->help( Utils::isNinja() && ! env('PHANTOMJS_BIN_PATH') ? trans('texts.phantomjs_help', [ + ->help( ! Utils::isNinja() ? (env('PHANTOMJS_BIN_PATH') ? 'phantomjs_local' : trans('texts.phantomjs_help', [ 'link_phantom' => link_to('https://phantomjscloud.com/', 'phantomjscloud.com', ['target' => '_blank']), 'link_docs' => link_to('https://www.invoiceninja.com/self-host/#phantomjs', 'PhantomJS', ['target' => '_blank']) - ]) : false) !!} + ])) : false) !!} {!! Former::checkbox('document_email_attachment') ->text(trans('texts.enable')) !!}