Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
libraries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
libraries
Commits
6de7fb32
Commit
6de7fb32
authored
Jan 13, 2011
by
sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1024080
by hswong3i, tstoeckler: Fixed installation profile retrieval.
parent
58d95d84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
CHANGELOG.txt
CHANGELOG.txt
+1
-0
libraries.module
libraries.module
+2
-15
No files found.
CHANGELOG.txt
View file @
6de7fb32
...
...
@@ -6,6 +6,7 @@ Libraries x.x-x.x, xxxx-xx-xx
Libraries 7.x-1.x, xxxx-xx-xx
-----------------------------
#1024080 by hswong3i, tstoeckler: Fixed installation profile retrieval.
#995988 by good_man: Wrong default install profile.
#975498 by Gábor Hojtsy: Update JS/CSS-loading to new drupal_add_js/css() API.
#958162 by tsteoeckler, sun: Consistent variable naming.
...
...
libraries.module
View file @
6de7fb32
...
...
@@ -56,19 +56,9 @@ function libraries_get_path($name, $base_path = FALSE) {
* @ingroup libraries
*/
function
libraries_get_libraries
()
{
global
$profile
;
// When this function is called during Drupal's initial installation process,
// the name of the profile that is about to be installed is stored in the
// global $profile variable. At all other times, the regular system variable
// contains the name of the current profile, and we can call variable_get()
// to determine the profile.
if
(
!
isset
(
$profile
))
{
$profile
=
variable_get
(
'install_profile'
,
'standard'
);
}
$directory
=
'libraries'
;
$searchdir
=
array
();
$profile
=
drupal_get_profile
();
$config
=
conf_path
();
// Similar to 'modules' and 'themes' directories in the root directory,
...
...
@@ -127,10 +117,7 @@ function libraries_get_libraries() {
* the files.
*/
function
libraries_scan_info_files
()
{
global
$profile
;
if
(
!
isset
(
$profile
))
{
$profile
=
variable_get
(
'install_profile'
,
'standard'
);
}
$profile
=
drupal_get_profile
();
$config
=
conf_path
();
// Build a list of directories.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment