Reviewed & tested by the community
Project:
Strongarm
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2015 at 15:21 UTC
Updated:
1 Jan 2020 at 21:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
justinstandring commentedI agree - we have a deploy script that strips README.txt files out of production site builds so there ends up being a few stray warnings.
In this patch, I've copied some text from the Strongarm project page as an alternative when the README file doesn't exist. I've also added some 'Useful Links' although this does run the risk of broken links in the future.
Comment #2
izmeez commentedEncountering a similar problem because the README.txt file permissions are restricted to 600.
Patch in #1 does not work because file does exist but permission is denied.
Otherwise this approach seems better than module using the README.txt file for help.
Comment #3
izmeez commentedChanging the line in patch from
if (file_exists($readme)) {to
if (is_readable($readme)) {will both confirm if files exists and if is readable satisfying either condition.
Comment #4
izmeez commentedI am uploading a revised patch with the change in comment #3
Comment #5
justinstandring commentedI've successfully verified patch #4 against the latest 7.x-2.x-dev with unreadable and missing README.txt files. Thanks, izmeez.
Comment #6
izmeez commentedI'm wondering if this can be committed to tidy up the module with a new release? Thanks.
Comment #7
izmeez commentedStill pending, any chance of commit and new release?