Skip to content
Snippets Groups Projects
Commit b5fea240 authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Ryan Jacobs
Browse files

Issue #2579283 by Berdir, r0nn1ef: Call to undefined function conf_path()

parent 2cef8f3f
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* External library handling for Drupal modules. * External library handling for Drupal modules.
*/ */
use Drupal\Core\DrupalKernel;
use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandler;
use Drupal\libraries\ExternalLibrary\Asset\AssetLibraryInterface; use Drupal\libraries\ExternalLibrary\Asset\AssetLibraryInterface;
...@@ -80,7 +81,7 @@ function libraries_get_path($name, $base_path = FALSE) { ...@@ -80,7 +81,7 @@ function libraries_get_path($name, $base_path = FALSE) {
function libraries_get_libraries() { function libraries_get_libraries() {
$searchdir = array(); $searchdir = array();
$profile = drupal_get_path('profile', drupal_get_profile()); $profile = drupal_get_path('profile', drupal_get_profile());
$config = conf_path(); $config = DrupalKernel::findSitePath(\Drupal::request());
// @todo core/libraries // @todo core/libraries
...@@ -133,7 +134,7 @@ function libraries_get_libraries() { ...@@ -133,7 +134,7 @@ function libraries_get_libraries() {
*/ */
function libraries_scan_info_files() { function libraries_scan_info_files() {
$profile = drupal_get_path('profile', drupal_get_profile()); $profile = drupal_get_path('profile', drupal_get_profile());
$config = conf_path(); $config = DrupalKernel::findSitePath(\Drupal::request());
// Build a list of directories. // Build a list of directories.
$directories = \Drupal::moduleHandler()->invokeAll('libraries_info_file_paths', $args = array()); $directories = \Drupal::moduleHandler()->invokeAll('libraries_info_file_paths', $args = array());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment