]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fixes an error during the install 1152/head
authorArthurHoaro <arthur@hoa.ro>
Thu, 7 Jun 2018 17:58:58 +0000 (19:58 +0200)
committerArthurHoaro <arthur@hoa.ro>
Thu, 7 Jun 2018 17:58:58 +0000 (19:58 +0200)
 was out of scope

index.php

index c34434ddcb0016b896330d63d19c7cdfc16fdd78..89b181cb392f105e60fe2d3069863c7482f732ac 100644 (file)
--- a/index.php
+++ b/index.php
@@ -174,7 +174,7 @@ if (! is_file($conf->getConfigFileExt())) {
     }
 
     // Display the installation form if no existing config is found
-    install($conf, $sessionManager);
+    install($conf, $sessionManager, $loginManager);
 }
 
 $loginManager->checkLoginState($_COOKIE, $clientIpId);
@@ -1823,8 +1823,9 @@ function lazyThumbnail($conf, $url,$href=false)
  *
  * @param ConfigManager  $conf           Configuration Manager 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.
     if (endsWith($_SERVER['HTTP_HOST'],'.free.fr') && !is_dir($_SERVER['DOCUMENT_ROOT'].'/sessions')) mkdir($_SERVER['DOCUMENT_ROOT'].'/sessions',0705);