mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Issue from https://github.com/the-djmaze/snappymail/pull/40 And my own broken $upload_max_filesize
This commit is contained in:
parent
54f3337f01
commit
21d3a9f401
2 changed files with 8 additions and 6 deletions
|
|
@ -1041,10 +1041,9 @@ class Actions
|
|||
NewThemeLink TemplatesLink LangLink PluginsLink AuthAccountHash
|
||||
*/
|
||||
|
||||
$upload_max_filesize = \ini_get('upload_max_filesize');
|
||||
$size = \strtoupper(\substr($value,-1));
|
||||
$upload_max_filesize = \intval($upload_max_filesize);
|
||||
switch ($size) {
|
||||
$value = \ini_get('upload_max_filesize');
|
||||
$upload_max_filesize = \intval($value);
|
||||
switch (\strtoupper(\substr($value, -1))) {
|
||||
case 'G': $upload_max_filesize *= 1024;
|
||||
case 'M': $upload_max_filesize *= 1024;
|
||||
case 'K': $upload_max_filesize *= 1024;
|
||||
|
|
|
|||
|
|
@ -130,8 +130,11 @@ class Identities extends AbstractProvider
|
|||
$identities = [];
|
||||
foreach ($this->drivers as $driver) {
|
||||
// Merge and replace by key
|
||||
foreach ($identitiesPerDriver[$driver->Name()] as $identity)
|
||||
$identities[$identity->Id(true)] = $identity;
|
||||
if (isset($identitiesPerDriver[$driver->Name()])) {
|
||||
foreach ($identitiesPerDriver[$driver->Name()] as $identity) {
|
||||
$identities[$identity->Id(true)] = $identity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return \array_values($identities);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue