CRM-19303 - Drupal - Restore getCiviSourceStorage()
authorTim Otten <totten@civicrm.org>
Wed, 28 Jun 2017 18:57:54 +0000 (11:57 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 28 Jun 2017 18:57:54 +0000 (11:57 -0700)
commit3403e54bf08dd259344d32b8e8321504b4245b58
tree84a0edb99f6b33b1ce4ee29d25d7c118770e2bb7
parent84906ea9e082f349ebaec6302028069d7285a7f2
CRM-19303 - Drupal - Restore getCiviSourceStorage()

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](https://github.com/civicrm/civicrm-core/pull/10513#issuecomment-310506829),
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`.
CRM/Utils/System/Base.php
CRM/Utils/System/DrupalBase.php