Might want to double check this on a clean install, but it seems as though the call to path_to_theme in jlightbox add is breaking the blocks admin page, not allowing blocks module to override the current theme when trying to edit blocks for a theme different than the admin theme. I was able to fix it by just commenting out the line:


//$css = path_to_theme() .'/jlightbox.css';
  if (!file_exists($css)) {
    $css = $path .'/css/jlightbox.css';
  }

I think you can just pull out the css theme override altogether, as you can override css with css anyway.

Scott

CommentFileSizeAuthor
#6 admin_menu-DRUPAL-5.patch1.79 KBsun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

In front of trying to reproduce this: If I understand you correctly, you have a separate administration theme and more than one theme enabled for your site. What is broken, if you then go to admin/build/block ?

sun’s picture

Status: Active » Postponed (maintainer needs more info)
snelson’s picture

Yes I have a site theme and a separate theme for admin. Typically, when you go to the admin/build/blocks page, Drupal switches to the theme you are currently editing blocks for. But, with your module enabled, the theme is not switching, its just staying on the admin theme, not allowing you to edit blocks for any other theme but admin.

snelson’s picture

Where's my manners? I meant to thank you for a great module. Tried a couple other things and this was the best. Good work!

alexis’s picture

Hey, even if I'm not using this module I can confirm that calling path_to_theme() from a module breaks block admin page. The problem seems to be the init_theme(), inside path_to_theme(), is resetting some theme related parameters.

sun’s picture

Status: Postponed (maintainer needs more info) » Fixed
FileSize
1.79 KB

Thanks guys, especially @alexis for this hint.

Committed attached patch which does not load a theme-specific stylesheet if a page starting with admin/build/block is displayed.

Anonymous’s picture

Status: Fixed » Closed (fixed)