From 19f55afaf36cf96e43234ea9655f5752cadfaab3 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 14 Nov 2005 16:04:14 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@434 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/theme-editor.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'wp-inst/wp-admin/theme-editor.php') diff --git a/wp-inst/wp-admin/theme-editor.php b/wp-inst/wp-admin/theme-editor.php index 8a0d4e7..e408b72 100644 --- a/wp-inst/wp-admin/theme-editor.php +++ b/wp-inst/wp-admin/theme-editor.php @@ -42,6 +42,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': @@ -105,10 +107,10 @@ default:
' . sprintf(__('Editing %s'), $file) . ''; + if ( is_writeable($real_file) ) { + echo '

' . sprintf(__('Editing %s'), $file_show) . '

'; } else { - echo '

' . sprintf(__('Browsing %s'), $file) . '

'; + echo '

' . sprintf(__('Browsing %s'), $file_show) . '

'; } ?>
@@ -147,7 +149,8 @@ if ($allowed_files) : } else { echo '

' . __('Oops, no such file exists! Double check the name and try again, merci.') . '

'; } - ?> + ?> +