From bug turned up here: http://drupal.org/node/206272

The title arguments are not unserialzed, so this test:

if (empty($item['title_arguments'])) {

in http://api.drupal.org/api/function/_menu_item_localize/6 and a couple other places always returns FALSE! Since it's testing
if (empty('a:0:{}')) {

Attached patch is a start, but now some things try to get unserialized twice.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pwolanin’s picture

Status: Needs work » Needs review
FileSize
1.98 KB

ok - this works, and simplifies the logic of the code a little, since t() doesn't care if we pass an empty array as the second argument.

chx’s picture

FileSize
1.21 KB

I do not like this solution. You call a lot of serialize totally unnecessary. I would rather make that empty succeed by storing empty string for empty title arguments which is the majority of the cases.

pwolanin’s picture

Looks good - as chx points out, unserialize is expensive.

pwolanin’s picture

Status: Needs review » Reviewed & tested by the community

quick test - works as desired.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.