cvs: pear /Image_GraphViz GraphViz.php package.xml
| From: | Sebastian Bergmann | Date: | Sun, 29 Dec 2002 15:25:36 +0000 |
| Subject: | cvs: pear /Image_GraphViz GraphViz.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7983@lists.php.net to get a copy of this message | ||
sebastian Sun Dec 29 10:25:36 2002 EDT
Modified files:
/pear/Image_GraphViz GraphViz.php package.xml
Log:
Fix Content-Type header for SVG images.
Index: pear/Image_GraphViz/GraphViz.php
diff -u pear/Image_GraphViz/GraphViz.php:1.12 pear/Image_GraphViz/GraphViz.php:1.13
--- pear/Image_GraphViz/GraphViz.php:1.12 Wed Dec 11 12:14:17 2002
+++ pear/Image_GraphViz/GraphViz.php Sun Dec 29 10:25:35 2002
@@ -13,7 +13,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +---------------------------------------------------------------------------+
//
-// $Id: GraphViz.php,v 1.12 2002/12/11 17:14:17 sebastian Exp $
+// $Id: GraphViz.php,v 1.13 2002/12/29 15:25:35 sebastian Exp $
//
/**
@@ -108,7 +108,6 @@
case 'gif':
case 'jpg':
case 'png':
- case 'svg':
case 'wbmp': {
header('Content-Type: image/' . $format);
}
@@ -116,6 +115,11 @@
case 'pdf': {
header('Content-Type: application/pdf');
+ }
+ break;
+
+ case 'svg': {
+ header('Content-Type: image/svg+xml');
}
break;
}
Index: pear/Image_GraphViz/package.xml
diff -u pear/Image_GraphViz/package.xml:1.16 pear/Image_GraphViz/package.xml:1.17
--- pear/Image_GraphViz/package.xml:1.16 Wed Dec 11 08:36:44 2002
+++ pear/Image_GraphViz/package.xml Sun Dec 29 10:25:35 2002
@@ -19,16 +19,12 @@
</maintainers>
<license>PHP License</license>
<release>
- <version>1.0.1</version>
- <date>2002-12-11</date>
+ <version>1.0.2</version>
+ <date>200X-XX-XX</date>
<state>stable</state>
<notes>
<![CDATA[
-+ Nodes can be grouped now by passing a group name as 3rd parameter
- to the addNode() method.
-
-+ The new addCluster() method can be used to give a label to a
- group of nodes and let GraphViz treat it as a node cluster.
+* Fixed Content-Type header for SVG images.
]]>
</notes>
<filelist>
@@ -37,6 +33,21 @@
</dir>
</filelist>
</release>
+ <changelog>
+ <release>
+ <version>1.0.1</version>
+ <date>2002-12-11</date>
+ <state>stable</state>
+ <notes>
+<![CDATA[
++ Nodes can be grouped now by passing a group name as 3rd parameter
+ to the addNode() method.
+
++ The new addCluster() method can be used to give a label to a
+ group of nodes and let GraphViz treat it as a node cluster.
+]]>
+ </notes>
+ </release>
<changelog>
<release>
<version>1.0</version>