* Fixes captions
* Removes silly logging
git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.1--patch-8
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
nextpage=${nextimage}.html
fi
filename=${extradir}${currentimage}
nextpage=${nextimage}.html
fi
filename=${extradir}${currentimage}
- echo "'$previouspage' '$currentpage' '$nextpage' '$addlink'" >> /tmp/bpgallery-tmp.log
if [ "x$currentpage" != "x" ]; then
generate_general_page "$previouspage" "$currentpage" "$nextpage" $addlink
fi
if [ "x$currentpage" != "x" ]; then
generate_general_page "$previouspage" "$currentpage" "$nextpage" $addlink
fi
function generate_general_page() {
function generate_general_page() {
- echo 'Generating the page...' >> /tmp/bpgallery-tmp.log
-
if [[ -z $1 ]]; then
previouspage=""
fi
if [[ -z $1 ]]; then
previouspage=""
fi
fi
if [ -r captions.txt ]; then
fi
if [ -r captions.txt ]; then
- caption=$($GREPCOMMAND -E "^${filename} " captions.txt); caption=${caption#* }
+ imagefilename=${filename##*/}
+ caption=$($GREPCOMMAND -E "^${imagefilename} " captions.txt); caption=${caption#* }