X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fmail_fetch%2Fsetup.php;h=36ede5b4563417de2f92262934b4d493a179c945;hp=293e6319471d2c0c31edb901b551f721a29beff6;hb=0fcb12718ed2c817e8be5b0bb1eb947ffb93d423;hpb=929da10db42a7764d611a14ac36b07a1a6089710 diff --git a/plugins/mail_fetch/setup.php b/plugins/mail_fetch/setup.php index 293e6319..36ede5b4 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-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -18,7 +18,7 @@ function squirrelmail_plugin_init_mail_fetch() { global $squirrelmail_plugin_hooks; - $squirrelmail_plugin_hooks['menuline']['mail_fetch'] = 'mail_fetch_link'; + $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'; @@ -30,8 +30,8 @@ function squirrelmail_plugin_init_mail_fetch() { * @private */ function mail_fetch_link() { - displayInternalLink('plugins/mail_fetch/fetch.php', _("Fetch"), ''); - echo '  '; + include_once (SM_PATH . 'plugins/mail_fetch/functions.php'); + return mail_fetch_link_do(); } /**