aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
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;
}