Drupal 7.x change the global variable $profile so the original code for libraries_get_libraries() no longer functioning. On the other hand, Drupal 7.x introduce the new function drupal_get_profile() which will also works during installation.

Patch via libraries-7.x-1.x-dev CVS. Tested with activate htmlpurifier during installation.

Comments

tstoeckler’s picture

Status: Active » Needs review
StatusFileSize
new1.38 KB
new1.38 KB

@hswong3i: Thanks for the patch.
There is one other place in the code where we need to determine the profile and I changed that as well.

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Just a note that I will commit this tomorrow or the day after in case there are no objections.
It's a correct fix. I'll try to reproduce this bug and the fix, but in this case I don't think that's strictly necessary.

hswong3i’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.42 KB

@tstoeckler: Oh great catch :D

On the other hand, IMHO the use of drupal_get_profile() is now similar as that of conf_path(), so additional dummy comment message shouldn't be required. Just a bit more coding style clean up as your reference.

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Fine with me. Back to RTBC. (Now I can even legally do that, since it's not my patch :) )

sun’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting, reviewing, and testing! Committed to HEAD.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.