-
Notifications
You must be signed in to change notification settings - Fork 579
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
LCDproc: add a shutdown/reboot control menu. Issue #8196 #784
Conversation
Why we need to use printf() instead of |
setHelt() is one of the functions considered by our gettext config to be translated and we don't want to have HTML tags mixed with strings for translation. setHelp accepts printf() similar parameters so you can replace |
61c39d3
to
0607ff0
Compare
ok, fixed in all lcdproc_client.php |
if(!isset($lcdproc_config['controlmenu'])) | ||
return false; |
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.
if
body needs braces
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.
fixed
function cmenu_enabled() { | ||
global $config; | ||
$lcdproc_config = $config['installedpackages']['lcdproc']['config'][0]; | ||
if(!isset($lcdproc_config['controlmenu'])) { |
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.
Needs a space between if
and (
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.
fixed
Redmine Issue: https://redmine.pfsense.org/issues/8196
Ready for review
add a control menu with the name 'pfsense' next to the 'Options' menu of LCDproc.
Currently there are only two options implemented: Reboot and shutdown.
Structure:
This is fixed/resolved copy of the original PR #376 by @c-schwamborn