Merge pull request #1451 from moteus/edit_short_open_tag

Fix. Works on php < 5.4.0 and short_open_tag=Off
This commit is contained in:
FusionPBX 2016-02-25 08:38:22 -07:00
commit dc4ea07286
1 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ else {
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<title><?=$title?></title>
<title><?php echo $title;?></title>
<script language="JavaScript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/jquery-1.11.1.js"></script>
<script language="JavaScript" type="text/javascript">
function submit_check() {
@ -242,21 +242,21 @@ else {
//load ace editor
var editor = ace.edit("editor");
editor.setOptions({
mode: 'ace/mode/<?=$mode?>',
mode: 'ace/mode/<?php echo $mode;?>',
theme: 'ace/theme/'+document.getElementById('theme').options[document.getElementById('theme').selectedIndex].value,
selectionStyle: 'text',
cursorStyle: 'smooth',
showInvisibles: <?=$setting_invisibles?>,
displayIndentGuides: <?=$setting_indenting?>,
showLineNumbers: <?=$setting_numbering?>,
showInvisibles: <?php echo $setting_invisibles;?>,
displayIndentGuides: <?php echo $setting_indenting;?>,
showLineNumbers: <?php echo $setting_numbering;?>,
showGutter: true,
scrollPastEnd: true,
fadeFoldWidgets: <?=$setting_numbering?>,
fadeFoldWidgets: <?php echo $setting_numbering;?>,
showPrintMargin: false,
highlightGutterLine: false,
useSoftTabs: false
});
document.getElementById('editor').style.fontSize='<?=$setting_size?>';
document.getElementById('editor').style.fontSize='<?php echo $setting_size;?>';
editor.focus();
//keyboard shortcut to save file