From 45c9d9b223721fc5f7b17c6b6f551040f6a38ebc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 13 Sep 2015 10:53:32 +0000 Subject: [PATCH] fix SiteMgr contact-form does NOT show submit message, caused by message being translatable but module not marked translatable --- addressbook/inc/class.addressbook_contactform.inc.php | 4 ++-- .../sitemgr/class.module_addressbook_contactform.inc.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/class.addressbook_contactform.inc.php b/addressbook/inc/class.addressbook_contactform.inc.php index bebba78a01..933746286c 100644 --- a/addressbook/inc/class.addressbook_contactform.inc.php +++ b/addressbook/inc/class.addressbook_contactform.inc.php @@ -5,7 +5,7 @@ * @link http://www.egroupware.org * @author Ralf Becker * @package addressbook - * @copyright (c) 2007-10 by Ralf Becker + * @copyright (c) 2007-15 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id$ */ @@ -212,6 +212,6 @@ class addressbook_contactform $content['captcha_task'] = sprintf('%d - %d =',$num1,$num2); $preserv['captcha_result'] = $num1-$num2; } - return $tpl->exec($this->callback,$content,$sel_options,$readonlys,$preserv); + return $tpl->exec($this->callback,$content,$sel_options,array(),$preserv); } } diff --git a/addressbook/sitemgr/class.module_addressbook_contactform.inc.php b/addressbook/sitemgr/class.module_addressbook_contactform.inc.php index bc378ce21a..5b926fedb5 100644 --- a/addressbook/sitemgr/class.module_addressbook_contactform.inc.php +++ b/addressbook/sitemgr/class.module_addressbook_contactform.inc.php @@ -5,7 +5,7 @@ * @link http://www.egroupware.org * @author Ralf Becker * @package addressbook - * @copyright (c) 2007 by Ralf Becker + * @copyright (c) 2007-15 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id$ */ @@ -23,6 +23,7 @@ class module_addressbook_contactform extends sitemgr_module */ function __construct() { + $this->i18n = true; $this->arguments = array(); // get's set in get_user_interface $this->title = lang('Contactform'); $this->description = lang('This module displays a contactform, that stores direct into the addressbook.');