X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fbug_report%2Fsetup.php;h=fcdda93ebe5dc0c03a6061aac38e89d5bd8a955d;hp=a9eb570c7ab8ec542733267a629dd6b81fedac60;hb=678e6387abebf51f816563ade72ea4bd3bb3bd70;hpb=15e6162eacc97158393bc75aed3afeb7b19c24a6 diff --git a/plugins/bug_report/setup.php b/plugins/bug_report/setup.php index a9eb570c..fcdda93e 100644 --- a/plugins/bug_report/setup.php +++ b/plugins/bug_report/setup.php @@ -16,64 +16,58 @@ /* Initialize the bug report plugin */ -function squirrelmail_plugin_init_bug_report() -{ - global $squirrelmail_plugin_hooks; - - $squirrelmail_plugin_hooks['menuline']['bug_report'] = 'bug_report_button'; - $squirrelmail_plugin_hooks['options_display_inside']['bug_report'] = 'bug_report_options'; - $squirrelmail_plugin_hooks['options_display_save']['bug_report'] = 'bug_report_save'; - $squirrelmail_plugin_hooks['loading_prefs']['bug_report'] = 'bug_report_load'; +function squirrelmail_plugin_init_bug_report() { + global $squirrelmail_plugin_hooks; + + $squirrelmail_plugin_hooks['menuline']['bug_report'] = 'bug_report_button'; + $squirrelmail_plugin_hooks['options_display_inside']['bug_report'] = 'bug_report_options'; + $squirrelmail_plugin_hooks['options_display_save']['bug_report'] = 'bug_report_save'; + $squirrelmail_plugin_hooks['loading_prefs']['bug_report'] = 'bug_report_load'; } /* Show the button in the main bar */ -function bug_report_button() -{ - global $color, $bug_report_visible; - - if (! $bug_report_visible) - return; - - displayInternalLink('plugins/bug_report/bug_report.php', 'Bug', ''); - echo "  \n"; +function bug_report_button() { + global $color, $bug_report_visible; + + if (! $bug_report_visible) { + return; + } + + displayInternalLink('plugins/bug_report/bug_report.php', 'Bug', ''); + echo "  \n"; } -function bug_report_save() -{ - global $username,$data_dir; - global $bug_report_bug_report_visible; +function bug_report_save() { + global $username,$data_dir; + global $bug_report_bug_report_visible; - if (isset($bug_report_bug_report_visible)) - { - setPref($data_dir, $username, 'bug_report_visible', '1'); - } - else - { - setPref($data_dir, $username, 'bug_report_visible', ''); - } + if (isset($bug_report_bug_report_visible)) { + setPref($data_dir, $username, 'bug_report_visible', '1'); + } else { + setPref($data_dir, $username, 'bug_report_visible', ''); + } } -function bug_report_load() -{ - global $username, $data_dir; - global $bug_report_visible; +function bug_report_load() { + global $username, $data_dir; + global $bug_report_visible; - $bug_report_visible = getPref($data_dir, $username, 'bug_report_visible'); + $bug_report_visible = getPref($data_dir, $username, 'bug_report_visible'); } -function bug_report_options() -{ - global $bug_report_visible; - - echo "Bug Reports:\n"; - echo " Show button in toolbar\n"; +function bug_report_options() { + global $bug_report_visible; + + echo '' . _("Bug Reports:") . "\n" . + ' ' . _("Show button in toolbar") . "\n"; } -?> +?> \ No newline at end of file