Fixed: #905 r2_login.php can't create log file on linux by kerozcak

This commit is contained in:
vl 2010-05-17 14:00:20 +02:00
parent dfb1cb9e66
commit 47a4a8e20a

View file

@ -93,7 +93,7 @@
// $_SERVER['SCRIPT_FILENAME'] = 'r:/code/ryzom/www/login//r2_login.php' // $_SERVER['SCRIPT_FILENAME'] = 'r:/code/ryzom/www/login//r2_login.php'
global $LogRelativePath; global $LogRelativePath;
$pathInfo = pathinfo(__FILE__); $pathInfo = pathinfo(__FILE__);
$logPath = $pathInfo['dirname'].$LogRelativePath; $logPath = $pathInfo['dirname'].'/'.$LogRelativePath;
if (!is_dir($logPath)) if (!is_dir($logPath))
{ {
$res = mkdir($LogPath, 0700); $res = mkdir($LogPath, 0700);