fix SiteMgr contact-form does NOT show submit message, caused by message being translatable but module not marked translatable

This commit is contained in:
Ralf Becker 2015-09-13 10:53:32 +00:00
parent c6dbb54eeb
commit 45c9d9b223
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @package addressbook
* @copyright (c) 2007-10 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2007-15 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @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);
}
}

View File

@ -5,7 +5,7 @@
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @package addressbook
* @copyright (c) 2007 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2007-15 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @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.');