From 1e79fe4ec7986c5a146bbcef00c593b6de00cd70 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 11 Jan 2005 04:55:57 +0000 Subject: If user does not append .jpg onto the imagename, then force it on there. --- packages/pfstat.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/pfstat.xml b/packages/pfstat.xml index e827d8e2..e9ffc438 100644 --- a/packages/pfstat.xml +++ b/packages/pfstat.xml @@ -192,6 +192,10 @@ $isfirstright = 0; $fromclassification = $rowhelper['fromclassification']; $imagename = $rowhelper['imagename']; + $pos = strrpos($imagename, ".jpg"); + if ($pos === false) { + $imagename .= ".jpg"; + } $from = $rowhelper['from']; $graphsizewidth = $rowhelper['graphsizewidth']; $graphsizeheight = $rowhelper['graphsizeheight']; -- cgit v1.2.3