X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=8567efb599ea8f99613b15efbe790f95fd4b2b85;hb=0b88c6022d494c9c4de779ef10df3ecd1328a55c;hp=d3e105f90997352e2c4291b1e409dfb58b07c113;hpb=371a6fc2d2ee8a2350a01ab37b2c5c2f173ee204;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index d3e105f9..8567efb5 100644 --- a/index.php +++ b/index.php @@ -89,7 +89,7 @@ if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR' if (!is_dir('tmp')) { mkdir('tmp',0705); chmod('tmp',0705); } // For RainTPL temporary files. if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. // Second check to see if Shaarli can write in its directory, because on some hosts is_writable() is not reliable. -if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); +if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) die('
ERROR: Shaarli does not have the right to write in its data directory ('.realpath($GLOBALS['config']['DATADIR']).').
'); if ($GLOBALS['config']['ENABLE_LOCALCACHE']) { if (!is_dir($GLOBALS['config']['CACHEDIR'])) { mkdir($GLOBALS['config']['CACHEDIR'],0705); chmod($GLOBALS['config']['CACHEDIR'],0705); }