1
0
Fork 0

Deal with the first 926 thumbnails always being jpegs on the production site.

This commit is contained in:
Andrew Tomaka 2011-11-11 20:39:17 -05:00
parent 86a6d91898
commit 64066b7ea9
1 changed files with 6 additions and 2 deletions

View File

@ -3,9 +3,13 @@
</div>
<div id="imageContainer" style="width: 960px;margin: auto;">
<?php foreach($uploads as $upload) { ?>
<?php
foreach($uploads as $upload) {
$extension = (preg_match('/guild/',$_SERVER['HTTP_HOST']) != 0 && $upload->id <= 927)
? '.jpg' : $upload->extension;
?>
<div id="galleryContainer">
<a href="<?php echo base_url($upload->id); ?>"><img src="<?php echo base_url('/thumbs/' . $upload->id . $upload->extension); ?>" /></a>
<a href="<?php echo base_url($upload->id); ?>"><img src="<?php echo base_url('/thumbs/' . $upload->id . $extension); ?>" /></a>
</div>
<?php } ?>
</div>