aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index c34434dd..89b181cb 100644
--- a/index.php
+++ b/index.php
@@ -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 */
1827function install($conf, $sessionManager) { 1828function 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