summaryrefslogtreecommitdiff
path: root/core/helpers/core_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-04 06:40:35 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-04 06:40:35 +0000
commitbae905a4cb6c86acf2a887b57779492d964ecba1 (patch)
tree3f616001ac60a593f62feb4e7acfdb1176b68c31 /core/helpers/core_event.php
parent1ae3ed7e3b796bae6e16e687c29f3fcf0df5fbfe (diff)
Improvements to access helper.
o Rename access::remove_group() to access::delete_group() for consistency. o Wrote more unit tests o Tests found a bug in access::remove_item() .. yay!
Diffstat (limited to 'core/helpers/core_event.php')
-rw-r--r--core/helpers/core_event.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/core_event.php b/core/helpers/core_event.php
index 3cf9f12f..f9ab2ed0 100644
--- a/core/helpers/core_event.php
+++ b/core/helpers/core_event.php
@@ -24,7 +24,7 @@ class core_event_Core {
}
public static function group_before_delete($group) {
- access::remove_group($group);
+ access::delete_group($group);
}
public static function photo_created($photo) {
@@ -32,7 +32,7 @@ class core_event_Core {
}
public static function photo_before_delete($photo) {
- access::remove_item($photo);
+ access::delete_item($photo);
}
public static function album_created($album) {
@@ -40,6 +40,6 @@ class core_event_Core {
}
public static function album_before_delete($album) {
- access::remove_item($album);
+ access::delete_item($album);
}
}