1
0
Fork 0

Adjust views to use short image urls.

This commit is contained in:
Andrew Tomaka 2011-11-07 22:10:13 -05:00
parent 3de47410a5
commit b9bce9cbe5
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class Upload extends CI_Controller {
echo $this->image_lib->display_errors();
$message = array('type'=>'success','status'=>'Uploaded successfully', 'file'=>base_url('/view/specific/' . $file_name));
$message = array('type'=>'success','status'=>'Uploaded successfully', 'file'=>base_url($file_name));
}
echo json_encode($message);

View file

@ -5,7 +5,7 @@
<div id="imageContainer" style="width: 960px;margin: auto;">
<?php foreach($uploads as $upload) { ?>
<div id="galleryContainer">
<a href="<?php echo base_url('/view/specific/' . $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 . $upload->extension); ?>" /></a>
</div>
<?php } ?>
</div>