denny / ShinyCMS

ShinyCMS is an open source CMS. This is the Perl version, built with Catalyst and DBIC. (There is also a Ruby on Rails version: www.github.com/denny/ShinyCMS-ruby)
56 stars 24 forks source link

Typo in root/search.tt #9

Closed meelash closed 11 years ago

meelash commented 11 years ago

Line 118 should have: c.request.param.search

not: c.request.params.search

denny commented 11 years ago

Either is valid and will work, but param is considered to be a legacy interface, so params is mildly preferred.

http://search.cpan.org/~jjnapiork/Catalyst-Runtime-5.90018/lib/Catalyst/Request.pm#$req->param http://search.cpan.org/~jjnapiork/Catalyst-Runtime-5.90018/lib/Catalyst/Request.pm#$req->params

meelash commented 11 years ago

hmm... I thought I had a bug caused by this, but I guess it was a misdiagnosis, sorry about that. Thanks for making the other one consistent :)

denny commented 11 years ago

No problem, thanks for the reports!