From 39854b3d3a80e4ac2bfee92a4b1210852baa7091 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 14 Feb 2006 12:09:11 +0000 Subject: WP Merge - requires upgrading of db through wp-admin/upgrade.php! git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@524 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/plugin-editor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wp-inst/wp-admin/plugin-editor.php') diff --git a/wp-inst/wp-admin/plugin-editor.php b/wp-inst/wp-admin/plugin-editor.php index 4a46027..2cfe7b8 100644 --- a/wp-inst/wp-admin/plugin-editor.php +++ b/wp-inst/wp-admin/plugin-editor.php @@ -53,16 +53,16 @@ case 'update': break; default: - + require_once('admin-header.php'); if ( !current_user_can('edit_plugins') ) die('

'.__('You have do not have sufficient permissions to edit plugins for this blog.').'

'); update_recently_edited("wp-content/plugins/$file"); - + if (!is_file($real_file)) $error = 1; - + if (!$error) { $f = fopen($real_file, 'r'); $content = fread($f, filesize($real_file)); -- cgit