Merge commit 'upstream/master'
This commit is contained in:
commit
6baa09e47b
@ -85,15 +85,15 @@ class rescue_task_Core {
|
|||||||
->select("id")
|
->select("id")
|
||||||
->from("items")
|
->from("items")
|
||||||
->where("parent_id", $parent_id)
|
->where("parent_id", $parent_id)
|
||||||
->orderby("left", "ASC")
|
->orderby("left_ptr", "ASC")
|
||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
static function set_left($id, $value) {
|
static function set_left($id, $value) {
|
||||||
Database::instance()->update("items", array("left" => $value), array("id" => $id));
|
Database::instance()->update("items", array("left_ptr" => $value), array("id" => $id));
|
||||||
}
|
}
|
||||||
|
|
||||||
static function set_right($id, $value) {
|
static function set_right($id, $value) {
|
||||||
Database::instance()->update("items", array("right" => $value), array("id" => $id));
|
Database::instance()->update("items", array("right_ptr" => $value), array("id" => $id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user