Fixed issue 315, atom feed of a wiki update is broken.

This commit is contained in:
Loic d'Anterroches 2009-10-28 09:28:06 +01:00
parent 37aa3d8b69
commit 1d24432f8d

View File

@ -193,11 +193,18 @@ class IDF_WikiRevision extends Pluf_Model
public function feedFragment($request)
{
$page = $this->get_wikipage();
if (!$this->is_head) {
$url = Pluf::f('url_base')
.Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
array($request->project->shortname,
$page->title),
array('rev' => $this->id));
} else {
$url = Pluf::f('url_base')
.Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
array($request->project->shortname,
$page->title));
}
$title = sprintf(__('%s: Documentation page %s updated - %s'),
$request->project->name,
$page->title, $page->summary);