*
* Setup of the mailfetch plugin.
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
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';
* @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();
}
/**