Gallery Block generates links only with default path (without language prefix):
/gallery/...
even if I switch it to, for example /de/ and it should be /de/gallery/...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fast_gallery_343326.patch | 4.2 KB | ncy |
| #1 | fast_gallery_343326.patch | 4.2 KB | ncy |
Comments
Comment #1
ncy commentedjust a guess, i probably shouldn't have named some variables $base_path because that's reserved by Drupal?
anyway, try this patch. it renames all instances of $base_path to $bpath.
Comment #2
ncy commentederh, sorry, i messed up the order of the files in the diff command.
re-posting patch:
Comment #3
verikami commented:-(
...nothing changes - so this is not a problem with $base_path/$bpath
...it is strange that the link is wrong only in block...
gallery page:
generates (respectively) proper links to subdirs:
but links 4 all lang versions from block are:
Comment #4
verikami commented...I think the problem is located here:
function: theme_fast_gallery_display_block()
line: ~1013
Comment #5
verikami commented...& this works for me:
but I do not know how to make 'professional patch'...
Comment #6
rapsli commenteddoes this work too:
$link = l($img,$random_img_path,array('html'=>TRUE));
let me know so I can put it into the code.
Comment #7
verikami commentedit's ok :-)
...lots of functions... I'm just starting to learn this api
Comment #8
rapsli commented