skip loading (not needed) translations when running during setup

This commit is contained in:
Ralf Becker 2014-05-05 12:21:47 +00:00
parent 6864caac21
commit 5f786d9af3

View File

@ -547,7 +547,7 @@ class infolog_activesync implements activesync_plugin_write
*/
function settings($hook_data)
{
translation::add_app('infolog');
if (!$hook_data['setup']) translation::add_app('infolog');
if (!isset($this->infolog)) $this->infolog = new infolog_bo();
if (!($types = $this->infolog->enums['type']))