Категории услуг и удаление latest из блога
This commit is contained in:
@@ -47,6 +47,8 @@ class ModelDesignLayout extends Model {
|
||||
$this->db->query("DELETE FROM " . DB_PREFIX . "category_to_layout WHERE layout_id = '" . (int)$layout_id . "'");
|
||||
$this->db->query("DELETE FROM " . DB_PREFIX . "product_to_layout WHERE layout_id = '" . (int)$layout_id . "'");
|
||||
$this->db->query("DELETE FROM " . DB_PREFIX . "information_to_layout WHERE layout_id = '" . (int)$layout_id . "'");
|
||||
$this->db->query("DELETE FROM " . DB_PREFIX . "service_category_to_layout WHERE layout_id = '" . (int)$layout_id . "'");
|
||||
$this->db->query("DELETE FROM " . DB_PREFIX . "service_to_layout WHERE layout_id = '" . (int)$layout_id . "'");
|
||||
}
|
||||
|
||||
public function getLayout($layout_id) {
|
||||
@@ -106,4 +108,4 @@ class ModelDesignLayout extends Model {
|
||||
|
||||
return $query->row['total'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user