32261e5871
Current error messages that are shown and logged when a problem occurs when creating htaccess and htpasswd files for a protected dir are really not helpful. The messages don't even mention which file caused the error. Sometimes when the files can't be created, it's not because they're already present, for example when there's a permission error. Also we've already verified that they are absent with file_exists so the current error message is not accurate at all! To empower users, we need to give them more details about the error. For that we want to show the error that the file creation logged itself. Finally, we've already verified that the htacces file already exists, so there's no point in using touch beforehand. We should just let fopen try to create the file and report whatever went wrong if anything happens. |
||
---|---|---|
.. | ||
admin | ||
class | ||
locales | ||
index.php |