aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-10-03 18:20:59 +0000
committerCash Costello <cash.costello@gmail.com>2009-10-03 18:20:59 +0000
commit82ed7baf78c3005309487fc4e8b075cba9249e8b (patch)
tree79c939fb5fc23dbe5a732afd869b20386f16c374 /start.php
parent6263b1d67488acd66f457aee0ec8a70e418ea5dc (diff)
downloadelgg-82ed7baf78c3005309487fc4e8b075cba9249e8b.tar.gz
elgg-82ed7baf78c3005309487fc4e8b075cba9249e8b.tar.bz2
cleaned up events and plugin hooks
Diffstat (limited to 'start.php')
-rw-r--r--start.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/start.php b/start.php
index 24189d44d..a15215118 100644
--- a/start.php
+++ b/start.php
@@ -72,7 +72,7 @@
}
// slideshow plugin hook
- register_plugin_hook('tidypics:slideshow', 'album', 'tidypics_slideshow');
+ register_plugin_hook('tp_slideshow', 'album', 'tidypics_slideshow');
}
/**
@@ -403,8 +403,8 @@
*/
function tidypics_slideshow($hook, $entity_type, $returnvalue, $params) {
- if ($returnvalue) {
- // someone has already added a slideshow
+ if ($returnvalue !== null) {
+ // someone has already added a slideshow or requested that the slideshow is not used
return $returnvalue;
}