summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/theme-editor.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-14 16:04:14 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-14 16:04:14 +0000
commit19f55afaf36cf96e43234ea9655f5752cadfaab3 (patch)
tree4c249fad7b1dbdeb62a86ea6859ab27f61462ed5 /wp-inst/wp-admin/theme-editor.php
parent37f4745bd187688d671658a709ca9cffb43efbca (diff)
downloadwordpress-mu-19f55afaf36cf96e43234ea9655f5752cadfaab3.tar.gz
wordpress-mu-19f55afaf36cf96e43234ea9655f5752cadfaab3.tar.xz
wordpress-mu-19f55afaf36cf96e43234ea9655f5752cadfaab3.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@434 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/theme-editor.php')
-rw-r--r--wp-inst/wp-admin/theme-editor.php11
1 files changed, 7 insertions, 4 deletions
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:
<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">
@@ -147,7 +149,8 @@ if ($allowed_files) :
} else {
echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
}
- ?>
+ ?>
+<div class="clear"> &nbsp; </div>
</div>
<?php
break;