aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-11 04:55:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-11 04:55:57 +0000
commit1e79fe4ec7986c5a146bbcef00c593b6de00cd70 (patch)
treeaa9363a91395ed09e4ce35a4405bd463f37356eb
parent9811b4afd277b0e3a11fd4417c245ac41e37baab (diff)
downloadpfsense-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.xml4
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'];