New 'libraries' folder in root instalation directory

This commit is contained in:
Manuel Cillero 2017-08-08 18:24:12 +02:00
parent 05b6a91b0c
commit 006992b900
2267 changed files with 50 additions and 65 deletions

View file

@ -265,7 +265,7 @@ function _htmlpurifier_load() {
}
$done = true;
$module_path = drupal_get_path('module', 'htmlpurifier');
$library_path = 'sites/all/libraries';
$library_path = 'libraries';
if (function_exists('libraries_get_path')) {
$library_path = libraries_get_path('htmlpurifier');
// This may happen if the user has HTML Purifier installed under the
@ -273,7 +273,7 @@ function _htmlpurifier_load() {
// move it over. There is code for emitting errors in
// htmlpurifier.install when this is the case.
if (!file_exists("$library_path/htmlpurifier/HTMLPurifier.auto.php")) {
$library_path = 'sites/all/libraries';
$library_path = 'libraries';
}
}