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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-14 10:26:39 +00:00
parent 50cc9f757b
commit 5c1a6a23ad
1 changed files with 5 additions and 3 deletions

View File

@ -41,6 +41,8 @@ if (empty($file)) {
$file = validate_file_to_edit($file, $allowed_files);
$real_file = get_real_file_to_edit($file);
$file_show = basename( $file );
switch($action) {
case 'update':
@ -104,10 +106,10 @@ default:
<div class="wrap">
<?php
if (is_writeable($real_file)) {
echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file) . '</h2>';
if ( is_writeable($real_file) ) {
echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file_show) . '</h2>';
} else {
echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file) . '</h2>';
echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file_show) . '</h2>';
}
?>
<div id="templateside">