[geeklog-cvs] Geeklog-1.x/system lib-webservices.php,1.15,1.16
Dirk Haun
dhaun at qs1489.pair.com
Sun Nov 4 14:37:09 EST 2007
Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv50409/system
Modified Files:
lib-webservices.php
Log Message:
Send an app:edited element with our entries (reported by the APE). Use the same timestamp as for atom:updated if it isn't set.
Index: lib-webservices.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-webservices.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** lib-webservices.php 4 Nov 2007 19:00:17 -0000 1.15
--- lib-webservices.php 4 Nov 2007 19:37:07 -0000 1.16
***************
*** 529,532 ****
--- 529,540 ----
$entry_elem->appendChild($updated);
+ if (!isset($arr['edited'])) {
+ $lasted = $arr['updated'];
+ } else {
+ $lasted = $arr['edited'];
+ }
+ $edited = $atom_doc->createElement('app:edited', $lasted);
+ $entry_elem->appendChild($edited);
+
$title = $atom_doc->createElement('atom:title', $arr['title']);
$title->setAttribute('type', 'text');
More information about the geeklog-cvs
mailing list