diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-02-14 12:09:11 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-02-14 12:09:11 +0000 |
| commit | 39854b3d3a80e4ac2bfee92a4b1210852baa7091 (patch) | |
| tree | 95125abe2a96d8b137949ce71bc33340a0c6e376 /wp-inst/wp-admin/plugin-editor.php | |
| parent | 5cd626aede5b92cd056bc0e205ac9dedfd96ae05 (diff) | |
| download | wordpress-mu-39854b3d3a80e4ac2bfee92a4b1210852baa7091.tar.gz wordpress-mu-39854b3d3a80e4ac2bfee92a4b1210852baa7091.tar.xz wordpress-mu-39854b3d3a80e4ac2bfee92a4b1210852baa7091.zip | |
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
Diffstat (limited to 'wp-inst/wp-admin/plugin-editor.php')
| -rw-r--r-- | wp-inst/wp-admin/plugin-editor.php | 6 |
1 files changed, 3 insertions, 3 deletions
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('<p>'.__('You have do not have sufficient permissions to edit plugins for this blog.').'</p>'); 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)); |
