Closed (fixed)
Project:
Acidfree Albums
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2005 at 23:05 UTC
Updated:
21 Dec 2005 at 00:03 UTC
I use pathauto to determine what menu to show in my left sidebar, so for my gallery menu I have it set to display on galleries/*. Pathauto is set up to alias all acidfree media to galleries/[whatever] and that works fine. The gallery menu shows up fine when looking at albums, but when looking at individual photos, the menu disappears despite the fact they are aliased correctly (URL begins with galleries but the menu just doesn't show up). Anyway to fix this?
Comments
Comment #1
Jedi Stannis commentedUpom further investigation I tracked the problem to line 145 in class_photo.inc:
$_GET['q'] = $q;
$q is null here which sets $_GET['q'] to null. The block module is later comparing the path the block should appear on to nothing, so of course it doesn't show up. The question is why is that line there? I commented it out and got my block back, and nothing seems to be wrong, but I don't want to just comment out a line of code without knowing what it's purpose is. Is this a safe fix?
Comment #2
vhmauery commentedYes, that fix is safe. That line of code somehow made its way back into the code after being deleted. It should not be there.
Comment #3
vhmauery commented