Skip to content

Commit

Permalink
Fixed OpenDocument exports
Browse files Browse the repository at this point in the history
Fixes #13002

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Feb 20, 2017
1 parent 4591c24 commit 59e9856
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -80,6 +80,7 @@ phpMyAdmin - ChangeLog
- issue #13016 and #13017 Slight improvements to the table layout of Relation view
- issue #12345 Correctly show affected rows for LOAD DATA queries
- issue #13010 Copy database: SQL error for copying PMADB metadata
- issue #13002 Fixed OpenDocument exports

4.6.6 (2017-01-23)
- issue #12759 Fix Notice regarding 'Undefined index: old_usergroup'
Expand Down
2 changes: 1 addition & 1 deletion libraries/OpenDocument.php
Expand Up @@ -61,7 +61,7 @@ public static function create($mime, $data)
$zipfile -> addFile(
'<?xml version="1.0" encoding="UTF-8"?' . '>'
. '<office:document-styles ' . OpenDocument::NS
. 'office:version="1.0">'
. ' office:version="1.0">'
. '<office:font-face-decls>'
. '<style:font-face style:name="Arial Unicode MS"'
. ' svg:font-family="\'Arial Unicode MS\'" style:font-pitch="variable"/>'
Expand Down
2 changes: 1 addition & 1 deletion libraries/plugins/export/ExportOds.php
Expand Up @@ -91,7 +91,7 @@ public function exportHeader()
{
$GLOBALS['ods_buffer'] .= '<?xml version="1.0" encoding="utf-8"?' . '>'
. '<office:document-content '
. OpenDocument::NS . 'office:version="1.0">'
. OpenDocument::NS . ' office:version="1.0">'
. '<office:automatic-styles>'
. '<number:date-style style:name="N37"'
. ' number:automatic-order="true">'
Expand Down
2 changes: 1 addition & 1 deletion libraries/plugins/export/ExportOdt.php
Expand Up @@ -148,7 +148,7 @@ public function exportHeader()
{
$GLOBALS['odt_buffer'] .= '<?xml version="1.0" encoding="utf-8"?' . '>'
. '<office:document-content '
. OpenDocument::NS . 'office:version="1.0">'
. OpenDocument::NS . ' office:version="1.0">'
. '<office:body>'
. '<office:text>';

Expand Down

0 comments on commit 59e9856

Please sign in to comment.