Changeset 3084

Show
Ignore:
Timestamp:
11/14/05 10:26:39 (3 years ago)
Author:
matt
Message:

No need to display the whole big path, fixes #1617

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/theme-editor.php

    r3082 r3084  
    4141$file = validate_file_to_edit($file, $allowed_files); 
    4242$real_file = get_real_file_to_edit($file); 
     43 
     44$file_show = basename( $file ); 
    4345 
    4446switch($action) { 
     
    105107 <div class="wrap">  
    106108  <?php 
    107     if (is_writeable($real_file)) { 
    108         echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file) . '</h2>'; 
     109    if ( is_writeable($real_file) ) { 
     110        echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file_show) . '</h2>'; 
    109111    } else { 
    110         echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file) . '</h2>'; 
     112        echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file_show) . '</h2>'; 
    111113    } 
    112114    ?>