mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -04:00
Update database queries.
This commit is contained in:
@@ -53,14 +53,16 @@ class notification_event_Core {
|
||||
}
|
||||
|
||||
static function user_deleted($user) {
|
||||
ORM::factory("subscriptions")
|
||||
db::build()
|
||||
->delete("subscriptions")
|
||||
->where("user_id", "=", $user->id)
|
||||
->delete_all();
|
||||
->execute();
|
||||
}
|
||||
|
||||
static function identity_provider_changed($old_provider, $new_provider) {
|
||||
ORM::factory("subscriptions")
|
||||
->delete_all();
|
||||
db::build()
|
||||
->delete("subscriptions")
|
||||
->execute();
|
||||
}
|
||||
|
||||
static function comment_created($comment) {
|
||||
|
||||
Reference in New Issue
Block a user