aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/custom_index/start.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/custom_index/start.php b/mod/custom_index/start.php
index 471a03999..857798798 100644
--- a/mod/custom_index/start.php
+++ b/mod/custom_index/start.php
@@ -15,7 +15,12 @@ function custom_index_init() {
register_plugin_hook('index', 'system', 'custom_index');
}
-function custom_index() {
+function custom_index($hook, $type, $return, $params) {
+ if ($return == true) {
+ // another hook has already replaced the front page
+ return $return;
+ }
+
if (!include_once(dirname(__FILE__) . "/index.php")) {
return false;
}