X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fmail_fetch%2Fsetup.php;h=2acba61315644f02beb13e2961fa420172b232fd;hp=89ad6119ce6edbaf35bc1af7976c74b4c7494bd9;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=6c99d1de81366bceab6c9d6cf12179eedc81f9bc;ds=sidebyside diff --git a/plugins/mail_fetch/setup.php b/plugins/mail_fetch/setup.php index 89ad6119..2acba613 100644 --- a/plugins/mail_fetch/setup.php +++ b/plugins/mail_fetch/setup.php @@ -5,7 +5,7 @@ * * Setup of the mailfetch plugin. * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright 1999-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -18,8 +18,7 @@ function squirrelmail_plugin_init_mail_fetch() { global $squirrelmail_plugin_hooks; - $squirrelmail_plugin_hooks['menuline']['mail_fetch'] = 'mail_fetch_link'; - $squirrelmail_plugin_hooks['loading_prefs']['mail_fetch'] = 'mail_fetch_load_pref'; + $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['mail_fetch'] = 'mail_fetch_link'; $squirrelmail_plugin_hooks['login_verified']['mail_fetch'] = 'mail_fetch_setnew'; $squirrelmail_plugin_hooks['left_main_before']['mail_fetch'] = 'mail_fetch_login'; $squirrelmail_plugin_hooks['optpage_register_block']['mail_fetch'] = 'mailfetch_optpage_register_block'; @@ -31,17 +30,8 @@ function squirrelmail_plugin_init_mail_fetch() { * @private */ function mail_fetch_link() { - displayInternalLink('plugins/mail_fetch/fetch.php', _("Fetch"), ''); - echo '  '; -} - -/** - * load preferences - * @private - */ -function mail_fetch_load_pref() { - include_once(SM_PATH . 'plugins/mail_fetch/functions.php'); - mail_fetch_load_pref_function(); + include_once (SM_PATH . 'plugins/mail_fetch/functions.php'); + return mail_fetch_link_do(); } /**