$fn, 'label' => preg_replace('/\.odt$/i', '', $fn), ); } $default = getDolGlobalString('BERICHT_DEFAULT_TEMPLATE', ''); api_ok(array('templates' => $out, 'default' => $default));