joomla/joomla-platform — pull request #1320 by okonomiyaki3000 (2012-06-27 01:42:18+00:00)
Title: Check that $wpoption['modulemode'] == 1, not just that it is set.

This is a fix for this bug:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=28676