Merge pull request #1152 from ArthurHoaro/hotfix/install-error
Fixes an error during the install
This commit is contained in:
commit
26b0b20228
1 changed files with 3 additions and 2 deletions
|
@ -174,7 +174,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the installation form if no existing config is found
|
// Display the installation form if no existing config is found
|
||||||
install($conf, $sessionManager);
|
install($conf, $sessionManager, $loginManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
$loginManager->checkLoginState($_COOKIE, $clientIpId);
|
$loginManager->checkLoginState($_COOKIE, $clientIpId);
|
||||||
|
@ -1823,8 +1823,9 @@ function lazyThumbnail($conf, $url,$href=false)
|
||||||
*
|
*
|
||||||
* @param ConfigManager $conf Configuration Manager instance.
|
* @param ConfigManager $conf Configuration Manager instance.
|
||||||
* @param SessionManager $sessionManager SessionManager instance
|
* @param SessionManager $sessionManager SessionManager instance
|
||||||
|
* @param LoginManager $loginManager LoginManager instance
|
||||||
*/
|
*/
|
||||||
function install($conf, $sessionManager) {
|
function install($conf, $sessionManager, $loginManager) {
|
||||||
// On free.fr host, make sure the /sessions directory exists, otherwise login will not work.
|
// On free.fr host, make sure the /sessions directory exists, otherwise login will not work.
|
||||||
if (endsWith($_SERVER['HTTP_HOST'],'.free.fr') && !is_dir($_SERVER['DOCUMENT_ROOT'].'/sessions')) mkdir($_SERVER['DOCUMENT_ROOT'].'/sessions',0705);
|
if (endsWith($_SERVER['HTTP_HOST'],'.free.fr') && !is_dir($_SERVER['DOCUMENT_ROOT'].'/sessions')) mkdir($_SERVER['DOCUMENT_ROOT'].'/sessions',0705);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue