Crisu83/yiistrap — pull request #99 by Jalle19 (2013-08-06 09:02:24+00:00)
Title: Fix TbNav::isItemActive() when inside a module

Yii::app()->route always contains the module ID when inside a module, thus we need to prepend it to the item's route if it is not present (since it can be omitted, just like the controller can be omitted for same-controller actions). With the old code, no menu item would ever become active since the strcasecmp() would never return zero.

I'm not sure if this is the cleanest way to tackle this issue, though it works just fine.