Allow anchor tags in OO.o

r39251: Display error from merge, if merge gives error
r39252: Implement pagerepeat tag for html files
This commit is contained in:
Nathan Gray 2012-05-22 17:54:01 +00:00
parent 541d7539b9
commit 61fb406928
2 changed files with 3 additions and 1 deletions

View File

@ -774,6 +774,7 @@ abstract class bo_merge
case 'application/vnd.oasis.opendocument.text':
case 'application/vnd.oasis.opendocument.spreadsheet':
case 'application/xml':
case 'text/html':
return $contentstart.implode('',$contentrep).$contentend;
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
@ -839,7 +840,7 @@ abstract class bo_merge
case 'application/vnd.oasis.opendocument.spreadsheet':
$replace_tags = array(
'<b>','<strong>','<i>','<em>','<u>','<span>','<ol>','<ul>','<li>',
'<table>','<tr>','<td>',
'<table>','<tr>','<td>','<a>',
);
break;
case 'application/xmlWord.Document': // Word 2003*/

View File

@ -740,6 +740,7 @@ function force_download(_action, _senders)
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['filemanager']['default_document'];
$document_merge = new filemanager_merge(egw_vfs::decodePath($dir));
$msg = $document_merge->download($settings, $selected, '', $GLOBALS['egw_info']['user']['preferences']['filemanager']['document_dir']);
if($msg) return $msg;
$failed = count($selected);
return false;
}