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

hg/feature/sound
vl 15 years ago
parent dfb1cb9e66
commit 47a4a8e20a

@ -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);

Loading…
Cancel
Save