Right now modules can't be enabled if the modules they depend on aren't enabled.

But a theme depends on its base theme, but we don't prevent users from enabling themes with missing dependencies on admin/build/themes.

If you enable a theme with a missing base theme, 2 things happen:

  1. You get numerous PHP notices:
    notice: Undefined index: BASETHEMENAME in includes/theme.inc on line 56.
    notice: Trying to get property of non-object in includes/theme.inc on line 405.
    notice: Trying to get property of non-object in includes/theme.inc on line 409.
    notice: Trying to get property of non-object in includes/theme.inc on line 409.
    
  2. The display of the sub-theme is completely broken due to numerous missing tpls, preprocess functions, theme functions, and inherited .info data.

Comments

johnalbin’s picture

johnalbin’s picture

effulgentsia’s picture