Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
libraries
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
libraries
Commits
b5fea240
Commit
b5fea240
authored
9 years ago
by
Sascha Grossenbacher
Committed by
Ryan Jacobs
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries.module
+3
-2
3 additions, 2 deletions
libraries.module
with
3 additions
and
2 deletions
libraries.module
+
3
−
2
View file @
b5fea240
...
@@ -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
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment