Skip to content

Commit

Permalink
fix elfinder integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Colinax committed Nov 11, 2020
1 parent 49cff45 commit 1be80ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions wbce/admin/media/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
require_once(WB_PATH . '/framework/class.admin.php');
$admin = new admin('Media', 'media');

if (file_exists('../../modules/el_finder/tool.php') && (!defined('SHOW_ELFINDER') || SHOW_ELFINDER != false)) {
if (file_exists('../../modules/elfinder/tool.php') && (!defined('SHOW_ELFINDER') || SHOW_ELFINDER != false)) {
$noPage = false;
$modulePath = WB_PATH . '/modules/el_finder/';
include('../../modules/el_finder/tool.php');
$modulePath = WB_PATH . '/modules/elfinder/';
include('../../modules/elfinder/tool.php');
} else {
$starttime = explode(" ", microtime());
$starttime = $starttime[0] + $starttime[1];
Expand Down
4 changes: 2 additions & 2 deletions wbce/modules/ckeditor/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ function show_wysiwyg_editor($name, $id, $content, $width = '100%', $height = '3
/**
* Call the filebrowser
*/
if (file_exists('../../modules/el_finder/tool.php') && (!defined('SHOW_ELFINDER') || SHOW_ELFINDER!=false)) {
$ckeditor->config['filebrowserBrowseUrl'] = $url['path'] . '/modules/el_finder/ef/elfinder_cke.php';
if (file_exists('../../modules/elfinder/tool.php') && (!defined('SHOW_ELFINDER') || SHOW_ELFINDER!=false)) {
$ckeditor->config['filebrowserBrowseUrl'] = $url['path'] . '/modules/elfinder/ef/elfinder_cke.php';
} else {
$connectorPath = $ckeditor->basePath . 'filemanager/connectors/php/connector.php';
$ckeditor->config['filebrowserBrowseUrl'] = $ckeditor->basePath . 'filemanager/browser/default/browser.html?Connector=' . $connectorPath;
Expand Down

0 comments on commit 1be80ec

Please sign in to comment.