summaryrefslogtreecommitdiff
path: root/core/helpers/album.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-28 19:37:01 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-28 19:37:01 +0000
commit8b6ed6c477771e42d43ea0684e5139cf361b6cee (patch)
tree38c0db7b9d53e8ffb52f4ffaea05fdebbb248530 /core/helpers/album.php
parent1b1d3852949a39765a4c58df3bcbc9cd5a28e00e (diff)
Create module::event() which runs Gallery events. It works by
convention. To respond to the "photo_created" event in the gmaps module, you create modules/gmaps/helpers/gmaps_event.php containing class gmaps_event which has function photo_created. Renamed all events from gallery.foo.bar to foo_bar Updated tag module to use new convention.
Diffstat (limited to 'core/helpers/album.php')
-rw-r--r--core/helpers/album.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/album.php b/core/helpers/album.php
index e3972975..dd62d693 100644
--- a/core/helpers/album.php
+++ b/core/helpers/album.php
@@ -54,7 +54,7 @@ class album_Core {
mkdir($thumbnail_dir);
}
- Event::run("gallery.album.created", $album);
+ module::event("album_created", $album);
return $album;
}