Changeset 1036:4374df1baa97 for plugins/themeEditor/index.php
- Timestamp:
- 11/26/12 13:27:11 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/themeEditor/index.php
r997 r1036 36 36 } elseif (!empty($_REQUEST['js'])) { 37 37 $file = $o->getFileContent('js',$_REQUEST['js']); 38 } elseif (!empty($_REQUEST['po'])) { 39 $file = $o->getFileContent('po',$_REQUEST['po']); 38 40 } 39 41 } … … 126 128 127 129 if ($user_ui_colorsyntax) { 128 $editorMode = (!empty($_REQUEST['css']) ? "css" : (!empty($_REQUEST['js']) ? "javascript" : "text/html")); 130 $editorMode = 131 (!empty($_REQUEST['css']) ? "css" : 132 (!empty($_REQUEST['js']) ? "javascript" : 133 (!empty($_REQUEST['po']) ? "text/plain" : "text/html"))); 129 134 echo 130 135 '<script> … … 166 171 <h3><?php echo __('JavaScript files'); ?></h3> 167 172 <?php echo $o->filesList('js','<a href="'.$p_url.'&js=%2$s" class="js-link">%1$s</a>'); ?> 173 174 <h3><?php echo __('Locales files'); ?></h3> 175 <?php echo $o->filesList('po','<a href="'.$p_url.'&po=%2$s" class="po-link">%1$s</a>'); ?> 168 176 </div> 169 177
Note: See TracChangeset
for help on using the changeset viewer.