Tag st_CachedMenu doesn't work when system has more then 5 languages

2 views
Skip to first unread message

Alexander Obuhovich

unread,
Dec 25, 2009, 7:08:18 AM12/25/09
to In-Portal Bugs
Tag st_CachedMenu doesn't work when system has more then 5 languages. The following code in MenuHelper::_altBuildMenuStructure method:

$languages_count = ceil($this->Conn->GetOne('SELECT COUNT(*) FROM '.TABLE_PREFIX.'Language')/5)*5

always rounds up language count up, so for 6 languages we will get 10 columns and of course 4 of them will be missing.

Imported from wiki, originally reported by ErikS.
Task: http://tracker.in-portal.org/view.php?id=504  (0000504: Tag st_CachedMenu doesn't work when system has more then 5 languages).

--
Best Regards,

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