Applied fixes from FlintCI

pull/2487/head
Julio Montoya 7 years ago
parent 2f45169ece
commit 5b4b4b7da6
  1. 5
      main/inc/lib/usermanager.lib.php
  2. 2
      main/install/index.php
  3. 2
      src/CoreBundle/Framework/Container.php

@ -374,9 +374,8 @@ class UserManager
$user->setExpirationDate($expirationDate); $user->setExpirationDate($expirationDate);
} }
try { try {
$userManager->updateUser($user);
$userManager->updateUser($user); $userId = $user->getId();
$userId = $user->getId();
} catch (Exception $e) { } catch (Exception $e) {
error_log($e->getMessage()); error_log($e->getMessage());
} }

@ -76,7 +76,7 @@ $installationLanguage = 'en';
if (!empty($_POST['language_list'])) { if (!empty($_POST['language_list'])) {
$search = ['../', '\\0']; $search = ['../', '\\0'];
$installationLanguage = str_replace($search, '', urldecode($_POST['language_list'])); $installationLanguage = str_replace($search, '', urldecode($_POST['language_list']));
//$_SESSION['install_language'] = $installationLanguage; //$_SESSION['install_language'] = $installationLanguage;
} else { } else {
// Trying to switch to the browser's language, it is covenient for most of the cases. // Trying to switch to the browser's language, it is covenient for most of the cases.
$installationLanguage = detect_browser_language(); $installationLanguage = detect_browser_language();

@ -400,7 +400,5 @@ class Container
Container::setUserManager($container->get('sonata.user.user_manager')); Container::setUserManager($container->get('sonata.user.user_manager'));
Container::setSiteManager($container->get('sonata.page.manager.site')); Container::setSiteManager($container->get('sonata.page.manager.site'));
Container::$session = $container->get('session'); Container::$session = $container->get('session');
} }
} }

Loading…
Cancel
Save