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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AnalogFile’s picture

Version: 7.0-alpha1 » 7.x-dev
Status: Active » Closed (works as designed)

The folder may have been changed too, for example because the ./sites/default/files directory have been created there.

Mark Trapp’s picture

Title: Installation complete message doesn't conform to Drupal path conventions » installation complete
Status: Needs review » Active

I 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.

Mark Trapp’s picture

Status: Closed (works as designed) » Needs review
FileSize
1.38 KB

Attached 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 the file_exists() conditional. This conforms to the way getting the current working directory is handled elsewhere.

Mark Trapp’s picture

Title: installation complete » Installation complete message doesn't conform to Drupal path conventions
AnalogFile’s picture

Title: installation complete » Installation complete message doesn't conform to Drupal path conventions
Status: Active » Reviewed & tested by the community

Sorry, you are right. Somehow I missed that part of the problem.

Patch also works for me and looks fine.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

David_Rothstein’s picture

Title: Installation complete message doesn't conform to Drupal path conventions » Installation messages don't conform to Drupal path conventions
Status: Fixed » Needs work

This 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.

AnalogFile’s picture

Status: Needs work » Needs review
FileSize
6.24 KB

This should fix install_check_requirements()

Status: Needs review » Needs work

The last submitted patch, installation_messages-689954-9.patch, failed testing.

AnalogFile’s picture

Status: Needs work » Needs review
Mark Trapp’s picture

Status: Needs review » Needs work

We 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., for file_exists()).

However, in the patch in #9 there's:

+    $conf_path_name = conf_path(FALSE, TRUE);
+    $conf_path = './' . $conf_path_name;

A new variable shouldn't be introduced: $conf_path should be set to conf_path(FALSE, TRUE), and all existing instances of $conf_path should be replaced with DRUPAL_ROOT . "/" . $conf_path.

  • Dries committed 7ab426e on 8.3.x
    - Patch #689954 by Mark Trapp: installation complete message doesn't...

  • Dries committed 7ab426e on 8.3.x
    - Patch #689954 by Mark Trapp: installation complete message doesn't...

  • Dries committed 7ab426e on 8.4.x
    - Patch #689954 by Mark Trapp: installation complete message doesn't...

  • Dries committed 7ab426e on 8.4.x
    - Patch #689954 by Mark Trapp: installation complete message doesn't...

  • Dries committed 7ab426e on 9.1.x
    - Patch #689954 by Mark Trapp: installation complete message doesn't...