X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka%2FWiki%2FInterpreter%2FPageList.hs;h=cffd93806f20c50b490dec6af1a9ac5596198a72;hp=6afae0fd8750ec9f989a4a0e29a1a7db5871562e;hb=b4c0033f297c28d95ad9298b489126331224bc42;hpb=529f792d338c75910079903e143d4dd21bd806c3 diff --git a/Rakka/Wiki/Interpreter/PageList.hs b/Rakka/Wiki/Interpreter/PageList.hs index 6afae0f..cffd938 100644 --- a/Rakka/Wiki/Interpreter/PageList.hs +++ b/Rakka/Wiki/Interpreter/PageList.hs @@ -53,14 +53,14 @@ recentUpdatesInterp setMax cond items result <- searchPages sto cond - pages <- mapM (getPageBySR sto) result + pages <- mapM (getPageByHP sto) (srPages result) mkPageList showSummary pages } where - getPageBySR :: Storage -> SearchResult -> IO Page - getPageBySR sto sr - = getPage sto (srPageName sr) (Just (srPageRev sr)) >>= return . fromJust + getPageByHP :: Storage -> HitPage -> IO Page + getPageByHP sto hp + = getPage sto (hpPageName hp) (Just (hpPageRev hp)) >>= return . fromJust mkPageList :: Bool -> [Page] -> IO BlockElement mkPageList showSummary pages