diff --git a/ChangeLog b/ChangeLog index 02dfe98e9..97f2085f4 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ $Source$ * libraries/export/ods.php: Use correct charset. * libraries/export/odt.php, lang/*, libraries/config.default.php: Add Open Document Text export (RFE #1068007). + * libraries/opendocument.lib.php: Add document metainformation. 2006-04-27 Sebastian Mendel * db_printview.php: fixed bug 'no tables found', refactored diff --git a/libraries/opendocument.lib.php b/libraries/opendocument.lib.php index 967285e36..1a1e8d2ec 100644 --- a/libraries/opendocument.lib.php +++ b/libraries/opendocument.lib.php @@ -22,10 +22,23 @@ function PMA_createOpenDocument($mime, $data) { $zipfile = new zipfile(); $zipfile -> addFile($mime, 'mimetype'); $zipfile -> addFile($data, 'content.xml'); - $zipfile -> addFile('' + $zipfile -> addFile('' + . '' + . '' + . 'phpMyAdmin ' . PMA_VERSION . '' + . 'phpMyAdmin ' . PMA_VERSION . '' + . '' . strftime('%Y-%m-%dT%H:%M:%S') . '' + . '' + . '' + , 'meta.xml'); + $zipfile -> addFile('' . '' . '' . '' + . '' . '' , 'META-INF/manifest.xml'); return $zipfile -> file();