Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
file_check_directory actively does a drupal_set_message('Directory Created') and drupal_set_message('Directory permissions modified'). The average end user could care less about these successful operations and are oft times confused by it. This patch removes the DSM on success and adds a watchdog to the error case of failed directory creation... I would almost say it is worth while to even remove the form_set_errors from this function and have the calling code deal with error reporting to end users.
Comment | File | Size | Author |
---|---|---|---|
file_check_directory-verbosity.patch | 1.67 KB | dopry | |
Comments
Comment #1
ricflomag CreditAttribution: ricflomag commentedNot only this is a good idea so that the average user does not get confused, but there is also a moderate security risk, because the full path to the directory is displayed on screen.
Should this patch be backported to 5.x and 6.x too ?
Comment #2
catchThis is a patch.
Would be nice for getting rid of the dozens of messages that show up when running all tests as well.
Comment #3
Dries CreditAttribution: Dries commentedI agree. Committed to CVS HEAD.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.