Deal with the first 926 thumbnails always being jpegs on the production site.
This commit is contained in:
parent
86a6d91898
commit
64066b7ea9
1 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue