Révision 6fd71452
Ajouté par Julien Enselme il y a environ 10 ans
drupal7/sites/all/modules/ckeditor/includes/filemanager.config.php | ||
---|---|---|
86 | 86 |
|
87 | 87 |
if (isset($_SESSION['ckeditor']['UserFilesPath'], $_SESSION['ckeditor']['UserFilesAbsolutePath'])) { |
88 | 88 |
$baseUrl = $_SESSION['ckeditor']['UserFilesPath']; |
89 |
$baseDir = $_SESSION['ckeditor']['UserFilesAbsolutePath']; |
|
89 |
// To deal with multiple application servers it's better to let CKFinder guess the server path based on the URL, |
|
90 |
// because the server side path changes on each request (#2127467). |
|
91 |
if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) { |
|
92 |
$baseDir = resolveUrl($baseUrl); |
|
93 |
} |
|
94 |
else { |
|
95 |
$baseDir = $_SESSION['ckeditor']['UserFilesAbsolutePath']; |
|
96 |
} |
|
90 | 97 |
} |
91 | 98 |
else { |
92 | 99 |
// Nothing in session? Shouldn't happen... anyway let's try to upload it in the (almost) right place |
Formats disponibles : Unified diff
Update CKEditor