Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-19303 - Drupal - Restore getCiviSourceStorage() #10577

Merged
merged 1 commit into from
Jun 28, 2017

Conversation

totten
Copy link
Member

@totten totten commented Jun 28, 2017

This partially reverts changes made under CRM-19303:

  • The changes to getDefaultFileStorage() are preserved
  • The changes to getCiviSourceStorage() are reverted
  • To avoid conflicts, parseDrupalSiteName() has been split into the older parseDrupalSiteNameFromRoot() and the newer parseDrupalSiteNameFromRequest().
    (IMHO, parseDrupalSiteNameFromRequest() is more correct, but parseDrupalSiteNameFromRoot() is more compatible with existing deployments).

As discussed in PR #10513,
we should stop trying so hard to autodetect these things. We'll treat the
auto-detection stuff as legacy, and should shift toward a simpler/flatter arrangement
which encourages paths/URLs to be stored in civicrm.settings.php.


This partially reverts changes made under CRM-19303:
 * The changes to `getDefaultFileStorage()` are preserved
 * The changes to `getCiviSourceStorage()` are reverted
 * To avoid conflicts, `parseDrupalSiteName()` has been split into the older `parseDrupalSiteNameFromRoot()` and the newer `parseDrupalSiteNameFromRequest()`.
   (IMHO, `parseDrupalSiteNameFromRequest()` is more correct, but `parseDrupalSiteNameFromRoot()` is more compatible with existing deployments).

As discussed in [PR civicrm#10513](civicrm#10513 (comment)),
we should stop trying so hard to autodetect these things.  We'll treat the
auto-detection stuff as legacy, and should shift toward a simpler/flatter arrangement
which encourages paths/URLs to be stored in `civicrm.settings.php`.
@totten
Copy link
Member Author

totten commented Jun 28, 2017

jenkins, test this please

@totten totten changed the title (WIP) CRM-19303 - Drupal - Restore getCiviSourceStorage() CRM-19303 - Drupal - Restore getCiviSourceStorage() Jun 28, 2017
@totten
Copy link
Member Author

totten commented Jun 28, 2017

Note: I've opened the PR so that the code can be shared/tested. However, I haven't yet reetsted this code in a multisite environment. Hoping for @adixon to give a whirl today.

@adixon
Copy link
Contributor

adixon commented Jun 28, 2017

Tested on my multisite, works.

@seamuslee001
Copy link
Contributor

@totten tested on AUG server as well and looks good to me

@totten
Copy link
Member Author

totten commented Jun 28, 2017

Thanks, @adixon @seamuslee001.

Also works on my local multisite and singlesite.

@totten totten merged commit fabb91b into civicrm:4.7.21-rc Jun 28, 2017
@totten totten deleted the 4.7.21-rc-src branch June 28, 2017 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants