Need DRUPAL_ROOT in various places

Created on 22 February 2013, almost 12 years ago
Updated 1 November 2023, about 1 year ago

I have an external PHP script that bootstraps Drupal, and that lives in a subfolder of my Drupal install dir.

After bootstrapping, this script calls some functionality from the Wysiwyg module. I discovered that the functionality doesn't currently work if called from a script that lives outside of the Drupal root, as there are several places where it should be (but is not) prepending DRUPAL_ROOT to the file path.

Attached patch fixes this, by appending DRUPAL_ROOT where necessary.

This also depends on: #1924212: Need DRUPAL_ROOT in file_scan_directory

📌 Task
Status

Needs work

Version

2.0

Component

Code

Created by

🇦🇺Australia Jaza

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024