|
|
|
@ -3307,17 +3307,21 @@ function finishInstallationWithContainer( |
|
|
|
'', |
|
|
|
'', |
|
|
|
false |
|
|
|
false |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
error_log('Adding access url as a node'); |
|
|
|
error_log('Adding access url as a node'); |
|
|
|
$userManager = $container->get('Chamilo\UserBundle\Repository\UserRepository'); |
|
|
|
$userManager = $container->get('Chamilo\UserBundle\Repository\UserRepository'); |
|
|
|
$urlRepo = $container->get('Chamilo\CoreBundle\Repository\AccessUrlRepository'); |
|
|
|
$urlRepo = $container->get('Chamilo\CoreBundle\Repository\AccessUrlRepository'); |
|
|
|
|
|
|
|
$urlRepo->getEntityManager()->flush(); |
|
|
|
|
|
|
|
|
|
|
|
$accessUrl = $urlRepo->find(1); |
|
|
|
$accessUrl = $urlRepo->find(1); |
|
|
|
$admin = $userManager->find($adminId); |
|
|
|
$admin = $userManager->find($adminId); |
|
|
|
$urlRepo->addResourceNode($accessUrl, $admin); |
|
|
|
$urlRepo->addResourceNode($accessUrl, $admin); |
|
|
|
|
|
|
|
$urlRepo->getEntityManager()->flush(); |
|
|
|
|
|
|
|
|
|
|
|
$userManager->addUserToResourceNode($adminId, $adminId, $accessUrl); |
|
|
|
$userManager->addUserToResourceNode($adminId, $adminId, $accessUrl); |
|
|
|
$userManager->addUserToResourceNode($anonId, $adminId, $accessUrl); |
|
|
|
$userManager->addUserToResourceNode($anonId, $adminId, $accessUrl); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$urlRepo->getEntityManager()->flush(); |
|
|
|
|
|
|
|
|
|
|
|
// Set default language |
|
|
|
// Set default language |
|
|
|
Database::update( |
|
|
|
Database::update( |
|
|
|
Database::get_main_table(TABLE_MAIN_LANGUAGE), |
|
|
|
Database::get_main_table(TABLE_MAIN_LANGUAGE), |
|
|
|
|