Cleaned the atom feed to validate against the feedvalidator.

This commit is contained in:
Loic d'Anterroches 2008-12-04 14:37:46 +01:00
parent 2e3330a8ad
commit d6e3b8dca9
5 changed files with 16 additions and 17 deletions

View File

@ -207,7 +207,8 @@ class IDF_Issue extends Pluf_Model
<pre>%%content%%</pre> <pre>%%content%%</pre>
</div></content> </div></content>
</entry>'; </entry>';
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view', $url = Pluf::f('url_base')
.Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view',
array($request->project->shortname, array($request->project->shortname,
$this->id)); $this->id));
$title = sprintf(__('%s: Issue %d created - %s'), $title = sprintf(__('%s: Issue %d created - %s'),

View File

@ -185,7 +185,8 @@ class IDF_IssueComment extends Pluf_Model
</div></content> </div></content>
</entry>'; </entry>';
$issue = $this->get_issue(); $issue = $this->get_issue();
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view', $url = Pluf::f('url_base')
.Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view',
array($request->project->shortname, array($request->project->shortname,
$issue->id)); $issue->id));
$url .= '#ic'.$this->id; $url .= '#ic'.$this->id;

View File

@ -210,7 +210,8 @@ class IDF_WikiPage extends Pluf_Model
%%content%% %%content%%
</div></content> </div></content>
</entry>'; </entry>';
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view', $url = Pluf::f('url_base')
.Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
array($request->project->shortname, array($request->project->shortname,
$this->title)); $this->title));
$title = sprintf(__('%s: Documentation page %s added - %s'), $title = sprintf(__('%s: Documentation page %s added - %s'),

View File

@ -202,7 +202,8 @@ class IDF_WikiRevision extends Pluf_Model
</div></content> </div></content>
</entry>'; </entry>';
$page = $this->get_wikipage(); $page = $this->get_wikipage();
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view', $url = Pluf::f('url_base')
.Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view',
array($request->project->shortname, array($request->project->shortname,
$page->title)); $page->title));
$title = sprintf(__('%s: Documentation page %s updated - %s'), $title = sprintf(__('%s: Documentation page %s updated - %s'),

View File

@ -3,11 +3,6 @@
{if !$user.isAnonymous()} <subtitle>{blocktrans}Personal project feed for {$user}.{/blocktrans}</subtitle>{/if} {if !$user.isAnonymous()} <subtitle>{blocktrans}Personal project feed for {$user}.{/blocktrans}</subtitle>{/if}
<link href="{$feedurl}" rel="self"/> <link href="{$feedurl}" rel="self"/>
<link href="{$viewurl}"/> <link href="{$viewurl}"/>
<updated>{$updated}</updated>
<author>
<name>Not given</name>
<email>Not given</email>
</author>
<id>{$feedurl}</id> <id>{$feedurl}</id>
{$body} {$body}
</feed> </feed>