Unable to set parsed category from custom rewrite parser

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Mar 26, 2012, 6:27:10 AM3/26/12
to In-Portal Bugs
During rewrite listener (builder/parser) testing in 5.2.0 (because of large changes to whole application initialization process) I discovered, that code

$params['m_cat_id'] = 15; // no category from url and I need to set a custom one here (won't be affecting <inp2:st_ContentBlock .../>)

doesn't work.

After a little research I discovered that rewrite listener, that searched for a category actually set 0 as current category id, when it wasn't able to find it in url. This wasn't a necessary measure, since m_cat_id variable is set to 0 before url parsing is started anyway.



Ready for testing.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
rewrite_parser_category_setting_fix.patch
Reply all
Reply to author
Forward
0 new messages