diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-11 04:55:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-11 04:55:57 +0000 |
commit | 1e79fe4ec7986c5a146bbcef00c593b6de00cd70 (patch) | |
tree | aa9363a91395ed09e4ce35a4405bd463f37356eb | |
parent | 9811b4afd277b0e3a11fd4417c245ac41e37baab (diff) | |
download | pfsense-packages-1e79fe4ec7986c5a146bbcef00c593b6de00cd70.tar.gz pfsense-packages-1e79fe4ec7986c5a146bbcef00c593b6de00cd70.tar.bz2 pfsense-packages-1e79fe4ec7986c5a146bbcef00c593b6de00cd70.zip |
If user does not append .jpg onto the imagename, then force it on there.
-rw-r--r-- | packages/pfstat.xml | 4 |
1 files changed, 4 insertions, 0 deletions
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']; |