Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20897

Update Hard Coded paths for including scripts and files in vendor, bower, packages directories

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.23
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Minor (add functionality in backwards-compatible manner)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      To facilitate the Drupal 8 version , which will require being installed with composer, when including files or scripts, we must update from hard coded paths, to a settings based approach.

      For example:
      ex: in CRM/Utils/Check/Component/Security.php, change from
      PHP{{"{$civicrm_root}/vendor/dompdf/dompdf/dompdf.php"}}
      to
      PHP{{Civi::paths()->getPath('[civicrm.vendor]/dompdf/dompdf/dompdf.php')}}

      Necessary to solve this issue:

      https://issues.civicrm.org/jira/browse/CRM-17652

        Attachments

          Activity

            People

            • Assignee:
              jackrabbithanna Mark Hanna
              Reporter:
              jackrabbithanna Mark Hanna
              Authorized Participants:
              David Snopek, Eileen McNaughton, Seamus Lee, Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: