[geeklog-cvs] Geeklog-1.x/system lib-syndication.php,1.41,1.42

Dirk Haun dhaun at qs1489.pair.com
Sat Jul 26 12:25:20 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv25529/system

Modified Files:
	lib-syndication.php 
Log Message:
Feature request #0000154: Added a "Subscribe to ..." option for easy subscription to topic feeds


Index: lib-syndication.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-syndication.php,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** lib-syndication.php	26 Jun 2008 21:16:00 -0000	1.41
--- lib-syndication.php	26 Jul 2008 16:25:17 -0000	1.42
***************
*** 676,678 ****
--- 676,693 ----
  }
  
+ /**
+ * Helper function: Return MIME type for a feed format
+ *
+ * @param    string  $format     internal name of the feed format, e.g. Atom-1.0
+ * @return   string              MIME type, e.g. application/atom+xml
+ *
+ */
+ function SYND_getMimeType($format)
+ {
+     $fmt = explode('-', $format);
+     $type = strtolower($fmt[0]);
+ 
+     return 'application/' . $type . '+xml';
+ }
+ 
  ?>




More information about the geeklog-cvs mailing list