Changeset 10310 for branches/2.2/plugins/LocalFilesEditor/show_default.php
- Timestamp:
- Apr 12, 2011, 1:40:06 PM (13 years ago)
- Location:
- branches/2.2/plugins/LocalFilesEditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/plugins/LocalFilesEditor
-
Property
svn:mergeinfo
set to
/trunk/plugins/LocalFilesEditor merged eligible
-
Property
svn:mergeinfo
set to
-
branches/2.2/plugins/LocalFilesEditor/show_default.php
r8728 r10310 39 39 $template->set_filename('show_default', dirname(__FILE__) . '/show_default.tpl'); 40 40 41 // Editarea42 $editarea_options = array(43 'syntax' => 'php',44 'start_highlight' => true,45 'allow_toggle' => false,46 'is_editable' => false,47 'language' => substr($user['language'], 0, 2));48 49 41 $file = file_get_contents(PHPWG_ROOT_PATH . $path); 50 42 $title = str_replace('/', ' / ', $path); … … 54 46 'DEFAULT_CONTENT' => $file, 55 47 'LOCALEDIT_PATH' => LOCALEDIT_PATH, 56 'LOAD_EDITAREA' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on', 57 'EDITAREA_OPTIONS' => $editarea_options)); 48 'LOAD_CODEMIRROR' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on', 49 'CODEMIRROR_MODE' => 'application/x-httpd-php' 50 ) 51 ); 58 52 59 53 $page['body_id'] = 'thePopuphelpPage';
Note: See TracChangeset
for help on using the changeset viewer.