-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Postfix dependency #964
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,7 +301,7 @@ sub menu_link_pro_tips | |
'cat' => 'logs', | ||
'url' => "$virtualmin_docs_pro/#edit_maillog", | ||
'skip' => !($config{'mail'} && | ||
$mail_system <= 1 && | ||
&indexof($mail_system, 0, 1) != -1 && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use of indexof here is confusing! Instead just compare $mail_system to 0 or 1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I reverted this, and one more below, because it seems you prefer comparing it using the |
||
$d->{'mail'}), | ||
}, | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -370,7 +370,7 @@ | |
|
||
$acme_providers_dir = "$module_config_directory/acme"; | ||
|
||
$mail_system = $config{'mail_system'}; | ||
$mail_system = $config{'mail_system'} == 99 ? -1 : $config{'mail_system'}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just leave it at 99, it's cleaner There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are more cases to fix, as there are places where There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Really? I found and fixed one, but didn't see any others.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah, search for
Ah, then there’s one more left in |
||
|
||
# generate_plugins_list([list]) | ||
# Creates the confplugins, plugins and other arrays based on the module config | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best to not re-order these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I want to have it re-ordered — we have to re-order...
I think it’s fine. Besides, my language manager script still doesn’t support translating
module.info
files. I never got around to implementing that. If I had, the order wouldn’t matter though.