From 54a2db3a31065184dcd81a4a31029cb979eef41e Mon Sep 17 00:00:00 2001 From: Bradley M. Froehle Date: Sun, 27 Mar 2011 14:19:35 -0700 Subject: [PATCH] Issue #619542 by bfroehle: Fix malformed theme .info files break menu_router generation. --- modules/system/system.module | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/modules/system/system.module b/modules/system/system.module index 6537671..829b421 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2488,6 +2488,10 @@ function _system_rebuild_theme_data() { $themes[$key]->filename = $theme->uri; $themes[$key]->info = drupal_parse_info_file($theme->uri) + $defaults; + // Add a resonable default for the name field if it is not provided, as + // menu router generation will break if it is undefined. + $themes[$key]->info += array('name' => $key); + // Invoke hook_system_info_alter() to give installed modules a chance to // modify the data in the .info files if necessary. $type = 'theme'; -- 1.7.3.5