Fix photos
This commit is contained in:
@@ -80,7 +80,7 @@ class RepairsPostAdmin extends Simpla
|
||||
|
||||
$this->design->assign('post', $post);
|
||||
|
||||
$this->db->query("SELECT * FROM __repairs_photo WHERE repair_id='" . $post->id . "' ORDER BY position, id DESC");
|
||||
$this->db->query("SELECT * FROM __repair_photo WHERE repair_id='" . $post->id . "' ORDER BY position, id DESC");
|
||||
$photos = $this->db->results();
|
||||
foreach($photos as $ph) $ph->img = Img::get('files/post/' . $ph->img, array('width'=>120, 'height'=>120));
|
||||
$this->design->assign('repair_photos', $photos);
|
||||
|
||||
Reference in New Issue
Block a user