[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.664,1.665

Dirk Haun dhaun at qs1489.pair.com
Sun Nov 25 04:11:13 EST 2007


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

Modified Files:
	lib-common.php 
Log Message:
Add a <link rel="service"> to the header to point to the Atompub Service Document (TBD: Don't add this when webservices are disabled)


Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.664
retrieving revision 1.665
diff -C2 -d -r1.664 -r1.665
*** lib-common.php	25 Nov 2007 06:55:07 -0000	1.664
--- lib-common.php	25 Nov 2007 09:11:11 -0000	1.665
***************
*** 948,951 ****
--- 948,956 ----
          }
      }
+     // TBD: need to be able to disable webservices - don't add this link then
+     $relLinks['service'] = '<link rel="service" type="application/atomsvc+xml" '
+                          . 'href="' . $_CONF['site_url']
+                          . '/webservices/atom/?introspection" '
+                          . 'title="Webservices"' . XHTML . '>';
      // TBD: add a plugin API and a lib-custom.php function
      $header->set_var( 'rel_links', implode( LB, $relLinks ));




More information about the geeklog-cvs mailing list