[Cpan-forum-commit] rev 205 - in trunk: . lib/CPAN/Forum/RM templates
svn at pti.co.il
svn at pti.co.il
Wed Aug 30 09:59:48 IDT 2006
Author: gabor
Date: 2006-08-30 09:59:47 +0300 (Wed, 30 Aug 2006)
New Revision: 205
Modified:
trunk/
trunk/lib/CPAN/Forum/RM/Notify.pm
trunk/lib/CPAN/Forum/RM/Other.pm
trunk/templates/notes.tmpl
Log:
more tests
give error message when asking for not existing rss feed
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- 8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:11074
+ 8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:11079
Modified: trunk/lib/CPAN/Forum/RM/Notify.pm
===================================================================
--- trunk/lib/CPAN/Forum/RM/Notify.pm 2006-08-30 06:30:21 UTC (rev 204)
+++ trunk/lib/CPAN/Forum/RM/Notify.pm 2006-08-30 06:59:47 UTC (rev 205)
@@ -95,7 +95,8 @@
$it = CPAN::Forum::DB::Posts->search_post_by_pauseid($pauseid);
}
else {
- $self->log->warning("rss requested for $params[0]");
+ $self->log->warning("Invalid rss feed requested for $params[0]");
+ return $self->notes('no_such_rss_feed');
}
}
else {
@@ -122,5 +123,6 @@
}
+
1;
Modified: trunk/lib/CPAN/Forum/RM/Other.pm
===================================================================
--- trunk/lib/CPAN/Forum/RM/Other.pm 2006-08-30 06:30:21 UTC (rev 204)
+++ trunk/lib/CPAN/Forum/RM/Other.pm 2006-08-30 06:59:47 UTC (rev 205)
@@ -44,6 +44,12 @@
$t->output;
}
+=head2 faq
+
+Show FAQ
+
+=cut
+
sub faq {
my $self = shift;
my $t = $self->load_tmpl("faq.tmpl");
Modified: trunk/templates/notes.tmpl
===================================================================
--- trunk/templates/notes.tmpl 2006-08-30 06:30:21 UTC (rev 204)
+++ trunk/templates/notes.tmpl 2006-08-30 06:59:47 UTC (rev 205)
@@ -30,6 +30,11 @@
</p>
</TMPL_IF>
+<TMPL_IF no_such_rss_feed>
+<p>
+No such RSS feed.
+</p>
+</TMPL_IF>
<TMPL_INCLUDE NAME="footer.tmpl">
More information about the Cpan-forum-commit
mailing list