--- brilliant_gallery/brilliant_gallery.module 2009-01-15 11:40:12.000000000 -0500 +++ brilliant_gallery/brilliant_gallery.module 2009-05-02 17:47:41.000000000 -0400 @@ -706,7 +706,10 @@ function render_brilliant_gallery($thisf #$result .= ('' . "\n"); #$pocetobr += 1; if (testext($retval[$poct - 1])) { - $caption = str_replace(array('.', '_'), ' ', basename($retval[$poct - 1], strrchr($retval[$poct - 1], '.'))); + #Overide caption as file name and replace with caption from captions.txt file + #$caption = str_replace(array('.', '_'), ' ', basename($retval[$poct - 1], strrchr($retval[$poct - 1], '.'))); + $caption = $retval_dimensions[$poct - 1]['caption']; + #$smallenough = false; $imgw = $retval_dimensions[$poct - 1]['imgw']; $imgh = $retval_dimensions[$poct - 1]['imgh'];