]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Page.hs
implemented page moving
[Rakka.git] / Rakka / Page.hs
index 9883b576f9be232abb5a715735c5c9109c004d6a..c1d72119e348c1f7ca02dadd980cd1e440912f1c 100644 (file)
@@ -376,9 +376,9 @@ parseEntity
 parseUpdateInfo :: (ArrowXml a, ArrowChoice a) => a XmlTree UpdateInfo
 parseUpdateInfo 
     = proc tree
-    -> do uInfo   <- getXPathTreesInDoc "/*/updateInfo" -< tree
+    -> do uInfo   <- getXPathTreesInDoc "/page/updateInfo" -< tree
           oldRev  <- (getAttrValue0 "oldRevision" >>> arr read) -< uInfo
-          oldName <- maybeA (getXPathTrees "/move/@from/text()" >>> getText) -< uInfo
+          oldName <- maybeA (getXPathTrees "/updateInfo/move/@from/text()" >>> getText) -< uInfo
           returnA -< UpdateInfo {
                         uiOldRevision = oldRev
                       , uiOldName     = oldName