New 'libraries' folder in root instalation directory
This commit is contained in:
parent
05b6a91b0c
commit
006992b900
2267 changed files with 50 additions and 65 deletions
|
@ -1203,7 +1203,7 @@ function ckeditor_path($local = FALSE, $refresh = FALSE) {
|
|||
|
||||
if ($refresh || (!$cke_path)) {
|
||||
$mod_path = drupal_get_path('module', 'ckeditor');
|
||||
$lib_path = 'sites/all/libraries';
|
||||
$lib_path = 'libraries';
|
||||
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
||||
|
||||
//default: path to ckeditor subdirectory in the ckeditor module directory (starting from the document root)
|
||||
|
@ -1236,7 +1236,7 @@ function ckeditor_path($local = FALSE, $refresh = FALSE) {
|
|||
$gs['ckeditor_local_path'] = strtr($gs['ckeditor_path'], array("%b" => "."));
|
||||
}
|
||||
if (FALSE !== strpos($gs['ckeditor_path'], "%l")) {
|
||||
$gs['ckeditor_local_path'] = strtr($gs['ckeditor_path'], array("%l" => "sites/all/libraries"));
|
||||
$gs['ckeditor_local_path'] = strtr($gs['ckeditor_path'], array("%l" => "libraries"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1275,7 +1275,7 @@ function ckeditor_plugins_path($local = FALSE, $refresh = FALSE) {
|
|||
|
||||
if ($refresh || (!$cke_plugins_path)) {
|
||||
$mod_path = drupal_get_path('module', 'ckeditor');
|
||||
$lib_path = 'sites/all/libraries';
|
||||
$lib_path = 'libraries';
|
||||
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
||||
|
||||
//default: path to plugins subdirectory in the ckeditor module directory (starting from the document root)
|
||||
|
@ -1309,7 +1309,7 @@ function ckeditor_plugins_path($local = FALSE, $refresh = FALSE) {
|
|||
$gs['ckeditor_plugins_local_path'] = strtr($gs['ckeditor_plugins_path'], array("%b" => "."));
|
||||
}
|
||||
if (FALSE !== strpos($gs['ckeditor_plugins_path'], "%l")) {
|
||||
$gs['ckeditor_plugins_local_path'] = strtr($gs['ckeditor_plugins_path'], array("%l" => "sites/all/libraries"));
|
||||
$gs['ckeditor_plugins_local_path'] = strtr($gs['ckeditor_plugins_path'], array("%l" => "libraries"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1348,7 +1348,7 @@ function ckfinder_path($refresh = FALSE) {
|
|||
|
||||
if ($refresh || (!$ckf_path)) {
|
||||
$mod_path = drupal_get_path('module', 'ckeditor');
|
||||
$lib_path = 'sites/all/libraries';
|
||||
$lib_path = 'libraries';
|
||||
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
||||
|
||||
//default: path to ckeditor subdirectory in the ckeditor module directory (starting from the document root)
|
||||
|
@ -1484,4 +1484,3 @@ function ckeditor_get_settings() {
|
|||
echo json_encode($_SESSION['cke_get_settings'][$_POST['id']]);
|
||||
die();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue