diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-06-07 19:58:58 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-06-07 19:58:58 +0200 |
commit | cad4251ad759ed28bd16eb3912239fb3c4a7e1e3 (patch) | |
tree | 869df1d3706edf2164219a7a1069fc1a3f998c4e | |
parent | ea700dd89fb2b114a34494b824564f48927d5779 (diff) | |
download | Shaarli-cad4251ad759ed28bd16eb3912239fb3c4a7e1e3.tar.gz Shaarli-cad4251ad759ed28bd16eb3912239fb3c4a7e1e3.tar.zst Shaarli-cad4251ad759ed28bd16eb3912239fb3c4a7e1e3.zip |
Fixes an error during the install
was out of scope
-rw-r--r-- | index.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -174,7 +174,7 @@ if (! is_file($conf->getConfigFileExt())) { | |||
174 | } | 174 | } |
175 | 175 | ||
176 | // Display the installation form if no existing config is found | 176 | // Display the installation form if no existing config is found |
177 | install($conf, $sessionManager); | 177 | install($conf, $sessionManager, $loginManager); |
178 | } | 178 | } |
179 | 179 | ||
180 | $loginManager->checkLoginState($_COOKIE, $clientIpId); | 180 | $loginManager->checkLoginState($_COOKIE, $clientIpId); |
@@ -1823,8 +1823,9 @@ function lazyThumbnail($conf, $url,$href=false) | |||
1823 | * | 1823 | * |
1824 | * @param ConfigManager $conf Configuration Manager instance. | 1824 | * @param ConfigManager $conf Configuration Manager instance. |
1825 | * @param SessionManager $sessionManager SessionManager instance | 1825 | * @param SessionManager $sessionManager SessionManager instance |
1826 | * @param LoginManager $loginManager LoginManager instance | ||
1826 | */ | 1827 | */ |
1827 | function install($conf, $sessionManager) { | 1828 | function install($conf, $sessionManager, $loginManager) { |
1828 | // On free.fr host, make sure the /sessions directory exists, otherwise login will not work. | 1829 | // On free.fr host, make sure the /sessions directory exists, otherwise login will not work. |
1829 | if (endsWith($_SERVER['HTTP_HOST'],'.free.fr') && !is_dir($_SERVER['DOCUMENT_ROOT'].'/sessions')) mkdir($_SERVER['DOCUMENT_ROOT'].'/sessions',0705); | 1830 | if (endsWith($_SERVER['HTTP_HOST'],'.free.fr') && !is_dir($_SERVER['DOCUMENT_ROOT'].'/sessions')) mkdir($_SERVER['DOCUMENT_ROOT'].'/sessions',0705); |
1830 | 1831 | ||