Updated the terms link

This commit is contained in:
Hillel Coren 2017-01-22 22:36:43 +02:00
parent c771bf3024
commit 9aaf7bf05a
2 changed files with 6 additions and 1 deletions

View File

@ -124,6 +124,11 @@ class Utils
return isset($_ENV['RESELLER_TYPE']) ? $_ENV['RESELLER_TYPE'] : false;
}
public static function getTermsLink()
{
return static::isNinja() ? NINJA_WEB_URL.'/terms' : NINJA_WEB_URL.'/self-hosting-the-invoice-ninja-platform';
}
public static function isOAuthEnabled()
{
$providers = [

View File

@ -632,7 +632,7 @@
{!! Former::checkbox('terms_checkbox')
->label(' ')
->value(1)
->text(trans('texts.agree_to_terms', ['terms' => '<a href="'.NINJA_WEB_URL.'/terms" target="_blank">'.trans('texts.terms_of_service').'</a>']))
->text(trans('texts.agree_to_terms', ['terms' => '<a href="'.Utils::getTermsLink().'" target="_blank">'.trans('texts.terms_of_service').'</a>']))
->raw() !!}
<br/>
</div>