The message now says: "All necessary changes to ./sites/default and ./sites/default/settings.php have been made. They have been set to read-only for security."
This logically reads:
1. Changes were made to ./sites/default (folder) and it was set to read-only
2. Changes were made to ./sites/default/settings.php (file) and it was set to read-only
"Changes" were made only to the file, not to the folder, so the beginning of the message is confusing. Also understanding what "they" is referring to requires too much pondering.
How about: "All necessary changes to sites/default/settings.php have been made. sites/default/settings.php (file) and sites/default (folder) have been set to read-only for security."
This is without the ./ part. Is that necessary by convention or otherwise? If it is, then it is going to look ugly in between the sentences (period-space-dot-slash).
Comment | File | Size | Author |
---|---|---|---|
#9 | installation_messages-689954-9.patch | 6.24 KB | AnalogFile |
#3 | drupal-689954-3-install-pathname-display.patch | 1.38 KB | Mark Trapp |
Comments
Comment #1
AnalogFile CreditAttribution: AnalogFile commentedThe folder may have been changed too, for example because the ./sites/default/files directory have been created there.
Comment #2
Mark TrappI may be missing something, but I don't think your comment fully addresses the issue: that is, by convention, Drupal tends to refer to subdirectories relative to Drupal root without the "./", except here. This leads to a little bit of confusion.
Comment #3
Mark TrappAttached is a patch that changes the display to the normal "settings/sitename/settings.php" format for path names. It keeps the pathnames without the "./" as a baseline, and adds
DRUPAL_ROOT
back when it needs them in thefile_exists()
conditional. This conforms to the way getting the current working directory is handled elsewhere.Comment #4
Mark TrappComment #5
AnalogFile CreditAttribution: AnalogFile commentedSorry, you are right. Somehow I missed that part of the problem.
Patch also works for me and looks fine.
Comment #6
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #8
David_Rothstein CreditAttribution: David_Rothstein commentedThis makes sense but it introduces an inconsistency since the rest of the installer still uses the "./" notation.
We at least would need to make a similar change in install_check_requirements(). There may be others too, but that is definitely one place where the "./" is used in the user interface.
Comment #9
AnalogFile CreditAttribution: AnalogFile commentedThis should fix install_check_requirements()
Comment #11
AnalogFile CreditAttribution: AnalogFile commented#9: installation_messages-689954-9.patch queued for re-testing.
Comment #12
Mark TrappWe should be consistent in how we generate paths: in bootstrap.inc and the patch committed in #3, the method is to set path variables to the Drupal conventional path (without the "./") and add back
DRUPAL_ROOT . "/"
when we need it (e.g., forfile_exists()
).However, in the patch in #9 there's:
A new variable shouldn't be introduced:
$conf_path
should be set toconf_path(FALSE, TRUE)
, and all existing instances of$conf_path
should be replaced withDRUPAL_ROOT . "/" . $conf_path
.