Skip to content

Commit

Permalink
removed unused variable check which was emitting a notice when a bad …
Browse files Browse the repository at this point in the history
…config file pathname was specified
  • Loading branch information
pk-fr committed Sep 13, 2015
1 parent 4b49a22 commit d2d250b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function check_config_file($filename) // self-explanatory
$ok = true;
break;
}
if (!$ok && $display_warning) fprintf(STDERR,"Warning:[%S] is not a valid yakpro-po config file!%s\tCheck if file is php, and if magic line is present!%s",$filename,PHP_EOL,PHP_EOL);
if (!$ok) fprintf(STDERR,"Warning:[%s] is not a valid yakpro-po config file!%s\tCheck if file is php, and if magic line is present!%s",$filename,PHP_EOL,PHP_EOL);
return $ok;
}

Expand Down Expand Up @@ -127,7 +127,7 @@ function remove_directory($path) // self-explanatory
if ($entry == ".") continue;
if ($entry == "..") continue;

if (is_link("$path/$entry")) unlink("$path/$entry" ); // remove symbolinc links first, to not dereference...
if (is_link("$path/$entry")) unlink("$path/$entry" ); // remove symbolic links first, to not dereference...
else if (is_dir ("$path/$entry")) remove_directory("$path/$entry");
else unlink("$path/$entry" );
}
Expand Down

0 comments on commit d2d250b

Please sign in to comment.