Fixed issue 315, atom feed of a wiki update is broken.
This commit is contained in:
parent
37aa3d8b69
commit
1d24432f8d
@ -193,11 +193,18 @@ class IDF_WikiRevision extends Pluf_Model
|
|||||||
public function feedFragment($request)
|
public function feedFragment($request)
|
||||||
{
|
{
|
||||||
$page = $this->get_wikipage();
|
$page = $this->get_wikipage();
|
||||||
$url = Pluf::f('url_base')
|
if (!$this->is_head) {
|
||||||
.Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
|
$url = Pluf::f('url_base')
|
||||||
array($request->project->shortname,
|
.Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
|
||||||
$page->title),
|
array($request->project->shortname,
|
||||||
array('rev' => $this->id));
|
$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'),
|
$title = sprintf(__('%s: Documentation page %s updated - %s'),
|
||||||
$request->project->name,
|
$request->project->name,
|
||||||
$page->title, $page->summary);
|
$page->title, $page->summary);
|
||||||
|
Loading…
Reference in New Issue
Block a user