aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/show_default.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LocalFilesEditor/show_default.php')
-rw-r--r--plugins/LocalFilesEditor/show_default.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/LocalFilesEditor/show_default.php b/plugins/LocalFilesEditor/show_default.php
index 4a8e68289..9dc325643 100644
--- a/plugins/LocalFilesEditor/show_default.php
+++ b/plugins/LocalFilesEditor/show_default.php
@@ -38,14 +38,6 @@ if (isset($_GET['file']))
$template->set_filename('show_default', dirname(__FILE__) . '/show_default.tpl');
- // Editarea
- $editarea_options = array(
- 'syntax' => 'php',
- 'start_highlight' => true,
- 'allow_toggle' => false,
- 'is_editable' => false,
- 'language' => substr($user['language'], 0, 2));
-
$file = file_get_contents(PHPWG_ROOT_PATH . $path);
$title = str_replace('/', ' / ', $path);
@@ -53,8 +45,10 @@ if (isset($_GET['file']))
'TITLE' => $title,
'DEFAULT_CONTENT' => $file,
'LOCALEDIT_PATH' => LOCALEDIT_PATH,
- 'LOAD_EDITAREA' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on',
- 'EDITAREA_OPTIONS' => $editarea_options));
+ 'LOAD_CODEMIRROR' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on',
+ 'CODEMIRROR_MODE' => 'application/x-httpd-php'
+ )
+ );
$page['body_id'] = 'thePopuphelpPage';