--- inc/common.function.php.orig 2008-08-09 14:14:22.000000000 +0200
+++ inc/common.function.php 2008-08-09 14:21:16.000000000 +0200
@@ -601,8 +601,7 @@
GLPI_CONFIG_DIR => $LANG["install"][23],
GLPI_SESSION_DIR => $LANG["install"][50],
GLPI_CRON_DIR => $LANG["install"][52],
- GLPI_CACHE_DIR => $LANG["install"][99],
- GLPI_LOG_DIR => $LANG["install"][53]
+ GLPI_CACHE_DIR => $LANG["install"][99]
);
$error=0;
foreach ($dir_to_check as $dir => $message){
@@ -633,6 +632,13 @@
break;
}
}
+ echo "<tr class='tab_bg_1'><td><strong>".$LANG["install"][53]."</strong></td>";
+ if (error_log("Test\n", 3, GLPI_LOG_DIR."/php-errors.log")) {
+ echo "<td>".$LANG["install"][20]."</td></tr>";
+ } else {
+ echo "<td><p class='red'>".$LANG["install"][19]."</p> ".$LANG["install"][97]."'".GLPI_LOG_DIR."'. ".$LANG["install"][98]."</td></tr>";
+ $error=1;
+ }
return $error;
}