Commit 55314880 authored by haemmer's avatar haemmer

Improved some comments

parent 241b2fb3
......@@ -302,7 +302,8 @@ function dumpFile($dumpFile, $providers, $variableName){
if(($fp = fopen($dumpFile, 'w')) !== false){
if (flock($fp, LOCK_EX)) { // do an exclusive lock
// Get an exclusive lock
if (flock($fp, LOCK_EX)) {
fwrite($fp, "<?php\n\n");
fwrite($fp, "// This file was automatically generated by readMetadata.php\n");
fwrite($fp, "// Don't edit!\n\n");
......@@ -312,7 +313,7 @@ function dumpFile($dumpFile, $providers, $variableName){
fwrite($fp, "\n?>");
// release the lock
// Release the lock
flock($fp, LOCK_UN);
} else {
$errorMsg = 'Could not lock file '.$dumpFile.' for writting';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment