Created
August 3, 2020 16:30
-
-
Save podarok/14f2a01d6f4b8a959d1a13f5a510e1b2 to your computer and use it in GitHub Desktop.
Libraries OpenY Drupal 9 fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libraries.module b/libraries.module | |
index 2ce2f19..e7fe5be 100644 | |
--- a/libraries.module | |
+++ b/libraries.module | |
@@ -117,7 +117,7 @@ function libraries_get_libraries() { | |
// profile, installation profiles may want to place libraries into a | |
// 'libraries' directory. | |
if ($profile = \Drupal::installProfile()) { | |
- $profile_path = \Drupal\Core\Extension\ExtensionList::getPath('profile', $profile); | |
+ $profile_path = drupal_get_path('profile', $profile); | |
$searchdir[] = "$profile_path/libraries"; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment