--- Revision None +++ Revision 333261356135 @@ -0,0 +1,15 @@ + if ($article->metadata->published->getTimestamp() != $item->published->date->getTimestamp()) + { + $article->metadata->published = $item->published->date; + $update = true; + } + + if ($update) + { + if (!$article->guid) + { + $article->create(); + continue; + } + $article->update(); + }