mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-01 02:29:10 -04:00
Stop using MY_ORM::original()
This commit is contained in:
@@ -55,7 +55,7 @@ class Group_Model extends ORM implements Group_Definition {
|
||||
module::event("group_created", $this);
|
||||
} else {
|
||||
// Updated group
|
||||
$original = clone $this->original();
|
||||
$original = ORM::factory("group")->where("id", "=", $this->id)->find();
|
||||
parent::save();
|
||||
module::event("group_updated", $original, $this);
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class User_Model extends ORM implements User_Definition {
|
||||
module::event("user_created", $this);
|
||||
} else {
|
||||
// Updated user
|
||||
$original = clone $this->original();
|
||||
$original = ORM::factory("user")->where("id", "=", $this->id)->find();
|
||||
parent::save();
|
||||
module::event("user_updated", $original, $this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user