Closed (fixed)
Project:
Brilliant Gallery
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2008 at 15:06 UTC
Updated:
17 Jan 2009 at 03:34 UTC
I fixed this myself by changing the code in "brilliant_gallery.module" starting at line 269 the code was:
if ( $captionyesornot == 'yes' or $captionyesornot == '' or ( variable_get('brilliant_gallery_caption', '') <> '' and $captionyesornot <> 'no' ) ) {
$showcaption = 'filename';
} else if ( $captionyesornot == 'no' ) {
$showcaption = '';
} else {
$showcaption = $captionyesornot;
}I changed it to:
if ( $captionyesnotext == 'yes' or $captionyesnotext == '' or ( variable_get('brilliant_gallery_caption', '') <> '' and $captionyesnotext <> 'no' ) ) {
$showcaption = 'filename';
} else if ( $captionyesnotext == 'no' ) {
$showcaption = '';
} else {
$showcaption = $captionyesnotext;
}Of course the offending variable is changed from "captionyesornot" to "captionyesnotext"
Worked for me!
Comments
Comment #1
crudolphy commented