mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2127 | Add https in default geoname server url, remove url formatter in register controller
This commit is contained in:
@@ -653,7 +653,7 @@ class Application extends SilexApplication
|
||||
private function setupGeonames()
|
||||
{
|
||||
$this['geonames.server-uri'] = $this->share(function (Application $app) {
|
||||
return $app['conf']->get(['registry', 'webservices', 'geonames-server'], 'http://geonames.alchemyasp.com/');
|
||||
return $app['conf']->get(['registry', 'webservices', 'geonames-server'], 'https://geonames.alchemyasp.com/');
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -265,7 +265,7 @@ class LoginController extends Controller
|
||||
return $this->render('login/register-classic.html.twig', array_merge(
|
||||
$this->getDefaultTemplateVariables($request),
|
||||
[
|
||||
'geonames_server_uri' => str_replace(sprintf('%s:', parse_url($url, PHP_URL_SCHEME)), '', $url),
|
||||
'geonames_server_uri' => $url,
|
||||
'form' => $form->createView()
|
||||
]));
|
||||
}
|
||||
|
@@ -146,7 +146,7 @@ class RegistryFormManipulator
|
||||
],
|
||||
'webservices' => [
|
||||
'google-charts-enabled' => true,
|
||||
'geonames-server' => 'http://geonames.alchemyasp.com/',
|
||||
'geonames-server' => 'https://geonames.alchemyasp.com/',
|
||||
'captchas-enabled' => false,
|
||||
'recaptcha-public-key' => '',
|
||||
'recaptcha-private-key' => '',
|
||||
|
Reference in New Issue
Block a user