mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Installation on 3.8.1 fails: Exception AccountRepository.php #1738
This commit is contained in:
parent
05ad79e207
commit
443c2193d5
@ -59,6 +59,7 @@ class AccountRepository
|
|||||||
$account->company_id = $company->id;
|
$account->company_id = $company->id;
|
||||||
|
|
||||||
// Set default language/currency based on IP
|
// Set default language/currency based on IP
|
||||||
|
if (\Cache::get('currencies')) {
|
||||||
$data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $account->ip));
|
$data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $account->ip));
|
||||||
$currencyCode = strtolower($data['geoplugin_currencyCode']);
|
$currencyCode = strtolower($data['geoplugin_currencyCode']);
|
||||||
$countryCode = strtolower($data['geoplugin_countryCode']);
|
$countryCode = strtolower($data['geoplugin_countryCode']);
|
||||||
@ -83,6 +84,7 @@ class AccountRepository
|
|||||||
if ($language) {
|
if ($language) {
|
||||||
$account->language_id = $language->id;
|
$account->language_id = $language->id;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$account->save();
|
$account->save();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user