move location of zip warning

This commit is contained in:
John Bintz 2009-09-30 17:38:17 -04:00
parent e17ea2cb6b
commit c8e0e73000
2 changed files with 4 additions and 6 deletions

View File

@ -387,6 +387,10 @@ function cpm_read_information_and_check_config() {
$cpm_config->detailed_warnings[] = __("The current theme isn't the ComicPress theme. If you've renamed the theme, ignore this warning.", 'comicpress-manager'); $cpm_config->detailed_warnings[] = __("The current theme isn't the ComicPress theme. If you've renamed the theme, ignore this warning.", 'comicpress-manager');
} }
if (!extension_loaded('zip')) {
$cpm_config->detailed_warnings[] = __("You do not have the Zip extension installed. Uploading a Zip file will not work.", 'comicpress-manager');
}
$any_cpm_document_root_failures = false; $any_cpm_document_root_failures = false;
if (!$wpmu_version) { if (!$wpmu_version) {

View File

@ -88,12 +88,6 @@ function cpm_manager_index() {
<?php } ?> <?php } ?>
</h3> </h3>
<?php if (!$zip_extension_loaded) { ?>
<div id="zip-upload-warning">
<?php printf(__('<strong>You do not have the Zip extension installed.</strong> Uploading a Zip file <strong>will not work</strong>. Either upload files individually or <a href="%s">FTP/SFTP the files to your site and import them</a>.'), "?page=" . plugin_basename(realpath(dirname(__FILE__) . '/../comicpress_manager_admin.php') . '-import')) ?>
</div>
<?php } ?>
<?php $target_url = add_query_arg("upload", "1") ?> <?php $target_url = add_query_arg("upload", "1") ?>
<form onsubmit="$('submit').disabled=true" action="<?php echo $target_url ?>" method="post" enctype="multipart/form-data"> <form onsubmit="$('submit').disabled=true" action="<?php echo $target_url ?>" method="post" enctype="multipart/form-data">