Commit 6a050417 authored by michaellenahan's avatar michaellenahan Committed by borisson_

Issue #3044149 by michaellenahan: Error on admin/reports/status page: 'The...

Issue #3044149 by michaellenahan: Error on admin/reports/status page: 'The jquery ui slider pips library is not installed' when library installed in a profile directory
parent b37891c0
......@@ -13,6 +13,14 @@ function facets_range_widget_requirements() {
$library_path = '/libraries/' . $library_name;
$library_exists = (file_exists(DRUPAL_ROOT . $library_path)) ? TRUE : FALSE;
// If library is not found, look in the current profile libraries path.
if (!$library_exists) {
$profile = \Drupal::installProfile();
$profile_path = drupal_get_path('profile', $profile);
$profile_path .= $library_path;
$library_exists = file_exists($profile_path);
}
$requirements = [];
if (!$library_exists) {
$arguments = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment