Dotclear


Ignore:
Timestamp:
02/19/18 16:54:30 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use array form of optionnal parameters for form::textarea(), code formatting (PSR-2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/themeEditor/index.php

    r3709 r3710  
    110110    '<div class="fieldset"><h3>' . __('File editor') . '</h3>' . 
    111111    '<p><label for="file_content">' . sprintf(__('Editing file %s'), '<strong>' . $file['f']) . '</strong></label></p>' . 
    112     '<p>' . form::textarea('file_content', 72, 25, html::escapeHTML($file['c']), 'maximal', '', !$file['w']) . '</p>'; 
     112    '<p>' . form::textarea('file_content', 72, 25, array( 
     113        'default'  => html::escapeHTML($file['c']), 
     114        'class'    => 'maximal', 
     115        'disabled' => !$file['w'] 
     116    )) . '</p>'; 
    113117 
    114118    if ($file['w']) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map