X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsetup.php;h=b25b63ee131eae4c174a0aca0e3d86c1b0471b8b;hb=79dd8c728f29d35dc3f971cd936e164927002bde;hp=25afb681ea1c48f4b6287ef3dd8c735a8ddeb98e;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git diff --git a/plugins/squirrelspell/setup.php b/plugins/squirrelspell/setup.php index 25afb681..b25b63ee 100644 --- a/plugins/squirrelspell/setup.php +++ b/plugins/squirrelspell/setup.php @@ -6,7 +6,7 @@ * Squirrelspell setup file, as defined by the SquirrelMail-1.2 API. * * @author Konstantin Riabitsev - * @copyright © 1999-2005 The SquirrelMail Project Team + * @copyright © 1999-2007 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -14,8 +14,6 @@ * @todo remove sqspell_ prefix from main php scripts. */ -/** @ignore */ -if (! defined('SM_PATH')) define('SM_PATH','../../'); /** * Standard SquirrelMail plugin initialization API. @@ -24,7 +22,7 @@ if (! defined('SM_PATH')) define('SM_PATH','../../'); */ function squirrelmail_plugin_init_squirrelspell() { global $squirrelmail_plugin_hooks; - $squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] = + $squirrelmail_plugin_hooks['template_construct_compose_buttons.tpl']['squirrelspell'] = 'squirrelspell_setup'; $squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] = 'squirrelspell_optpage_register_block'; @@ -56,7 +54,7 @@ function squirrelspell_optpage_register_block() { */ function squirrelspell_setup() { include_once(SM_PATH . 'plugins/squirrelspell/sqspell_functions.php'); - squirrelspell_setup_function(); + return squirrelspell_setup_function(); } /** @@ -78,5 +76,3 @@ function squirrelspell_upgrade() { function squirrelspell_version() { return '0.5'; } - -?> \ No newline at end of file