2
Yesterday About this bug, since the cause was found
Quote:
danruiid wrote:
Using the Image Manager, I create a category that stores the images inside the database. I upload. Good.
Now, I attempt to rename one of the images. All of the images disappear.
ALL xoops2.0.X : spell miss imagebody table name
'image_body' --> 'imagebody'
/kernel/image.php from about line 160
Before
if (isset($image_body) && $image_body != '') {
$sql = sprintf("UPDATE %s SET image_body = %s WHERE image_id = %u", $this->db->prefix([u][color=990000]'image_body'[/color][/u]), $this->db->quoteString($image_body), $image_id);
if (!$result = $this->db->query($sql)) {
$this->db->query(sprintf("DELETE FROM %s WHERE image_id = %u", $this->db->prefix('image'), $image_id));
return false;
}
}
After
if (isset($image_body) && $image_body != '') {
$sql = sprintf("UPDATE %s SET image_body = %s WHERE image_id = %u", $this->db->prefix([u][color=990000]'imagebody'[/color][/u]), $this->db->quoteString($image_body), $image_id);
if (!$result = $this->db->query($sql)) {
$this->db->query(sprintf("DELETE FROM %s WHERE image_id = %u", $this->db->prefix('image'), $image_id));
return false;
}
}