[geeklog-cvs] Geeklog-1.x/system lib-webservices.php, 1.37, 1.37.2.1

Dirk Haun dhaun at qs1489.pair.com
Thu Jul 24 05:40:38 EDT 2008


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

Modified Files:
      Tag: geeklog_1_5_0_1
	lib-webservices.php 
Log Message:
Ported AtomPub compatibility improvements over from the Trunk


Index: lib-webservices.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-webservices.php,v
retrieving revision 1.37
retrieving revision 1.37.2.1
diff -C2 -d -r1.37 -r1.37.2.1
*** lib-webservices.php	31 May 2008 21:42:27 -0000	1.37
--- lib-webservices.php	24 Jul 2008 09:40:35 -0000	1.37.2.1
***************
*** 457,460 ****
--- 457,461 ----
      switch ($type) {
      case 'text':
+     case 'text/plain':
          $args['content'] = (string) $node->nodeValue;
          $args['content_type'] = 'text';
***************
*** 462,465 ****
--- 463,467 ----
  
      case 'html':
+     case 'text/html':
          $args['content'] = (string) $node->nodeValue;
          $args['content_type'] = 'html';
***************
*** 568,571 ****
--- 570,575 ----
                                  $args[$node->localName][$node->firstChild->localName] = $child_node->firstChild->nodeValue;
                              }
+                         } elseif ($child_node->nodeType == XML_CDATA_SECTION_NODE) {
+                             $args[$node->localName] = $child_node->nodeValue;
                          }
                      }




More information about the geeklog-cvs mailing list