aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 71cf2ae51..e21e30e25 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -309,7 +309,7 @@
// If it's been requested, pass off to a template handler instead
if ($bypass == false && isset($CONFIG->template_handler) && !empty($CONFIG->template_handler)) {
- $template_handler = $CONFIG->template_handler;
+ $template_handler = $CONFIG->template_handler;
if (is_callable($template_handler))
return $template_handler($view, $vars);
}
@@ -1479,10 +1479,10 @@
}
/**
- * Triggers a plugin hook, with various parameters as an array. For example, to provide
- * a 'foo' hook that concerns an entity of type 'bar', with a parameter called 'param1'
- * with value 'value1', that by default returns true, you'd call:
- *
+ * Triggers a plugin hook, with various parameters as an array. For example, to provide
+ * a 'foo' hook that concerns an entity of type 'bar', with a parameter called 'param1'
+ * with value 'value1', that by default returns true, you'd call:
+ *
* trigger_plugin_hook('foo', 'bar', array('param1' => 'value1'), true);
*
* @see register_plugin_hook
@@ -2101,29 +2101,29 @@
// Menu
global $CONFIG;
- add_menu(elgg_echo('content:latest'), $CONFIG->wwwroot . 'dashboard/latest.php');
+ //add_menu(elgg_echo('content:latest'), $CONFIG->wwwroot . 'dashboard/latest.php');
// Page handler for JS
- register_page_handler('js','js_page_handler');
+ register_page_handler('js','js_page_handler');
extend_view('js/initialise_elgg','embed/js');
// Register an event triggered at system shutdown
register_shutdown_function('__elgg_shutdown_hook');
}
-
- function elgg_boot() {
-
- // Actions
- register_action('comments/add');
- register_action('comments/delete');
- }
-
- /**
- * Some useful constant definitions
- */
- define('ACCESS_PRIVATE',0);
- define('ACCESS_LOGGED_IN',1);
- define('ACCESS_PUBLIC',2);
- register_elgg_event_handler('init','system','elgg_init');
+ function elgg_boot() {
+
+ // Actions
+ register_action('comments/add');
+ register_action('comments/delete');
+ }
+
+ /**
+ * Some useful constant definitions
+ */
+ define('ACCESS_PRIVATE',0);
+ define('ACCESS_LOGGED_IN',1);
+ define('ACCESS_PUBLIC',2);
+
+ register_elgg_event_handler('init','system','elgg_init');
register_elgg_event_handler('boot','system','elgg_boot');
?> \ No newline at end of file