Add warning to Export page
This commit is contained in:
@@ -150,6 +150,7 @@ class ImportExportFactory {
|
|||||||
$data['maxPostSizeBytes'] = Helpers::getMaxPostSize('bytes');
|
$data['maxPostSizeBytes'] = Helpers::getMaxPostSize('bytes');
|
||||||
$data['maxPostSize'] = Helpers::getMaxPostSize();
|
$data['maxPostSize'] = Helpers::getMaxPostSize();
|
||||||
}
|
}
|
||||||
|
$data['zipExtensionLoaded'] = extension_loaded('zip');
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,11 @@
|
|||||||
<%= __('Export') %>
|
<%= __('Export') %>
|
||||||
<a class="page-title-action" href="?page=mailpoet-subscribers#/"><%= __('Back to Subscribers') %></a>
|
<a class="page-title-action" href="?page=mailpoet-subscribers#/"><%= __('Back to Subscribers') %></a>
|
||||||
</h1>
|
</h1>
|
||||||
|
<%if not zipExtensionLoaded %>
|
||||||
|
<div class="error">
|
||||||
|
<p><%= __('ZIP extension is required to create Excel files. Please refer to the [link]official PHP ZIP installation guide[/link] or contact your hosting provider’s technical support for instructions on how to install and load the ZIP extension.' | replaceLinkTags('http://php.net/manual/en/zip.installation.php')) %></p>
|
||||||
|
</div>
|
||||||
|
<%endif%>
|
||||||
<% if segments is empty %>
|
<% if segments is empty %>
|
||||||
<div class="error">
|
<div class="error">
|
||||||
<p><%= __("Yikes! Couldn't find any subscribers") %></p>
|
<p><%= __("Yikes! Couldn't find any subscribers") %></p>
|
||||||
@@ -72,7 +77,7 @@
|
|||||||
|
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="option_format"
|
<input type="radio" name="option_format"
|
||||||
value="xlsx"><%= __('Excel file') %>
|
value="xlsx" <%if not zipExtensionLoaded %> disabled="disabled" <%endif%>><%= __('Excel file') %>
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user