[geeklog-cvs] Geeklog-1.x/system lib-webservices.php,1.13,1.14

Dirk Haun dhaun at qs1489.pair.com
Thu Nov 1 11:55:08 EDT 2007


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

Modified Files:
	lib-webservices.php 
Log Message:
Fixed WS_getContent() for XHTML content (only the first child node was stored)


Index: lib-webservices.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-webservices.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** lib-webservices.php	21 Oct 2007 11:46:02 -0000	1.13
--- lib-webservices.php	1 Nov 2007 15:55:06 -0000	1.14
***************
*** 388,392 ****
          $div = $node->firstChild;
          if (($div->nodeName == 'div') || ($div->nodeName == 'xhtml:div')) {
!             $args['content'] = (string) $atom_doc->saveXML($div->firstChild);
              $args['content_type'] = 'html'; // it's all the same to us ...
          }
--- 388,395 ----
          $div = $node->firstChild;
          if (($div->nodeName == 'div') || ($div->nodeName == 'xhtml:div')) {
!             $args['content'] = '';
!             foreach ($div->childNodes as $item) {
!                 $args['content'] .= $atom_doc->saveXML($item);
!             }
              $args['content_type'] = 'html'; // it's all the same to us ...
          }




More information about the geeklog-cvs mailing list