]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
removing deprecated functions from custom_index plugin
authorCash Costello <cash.costello@gmail.com>
Mon, 7 Nov 2011 12:34:38 +0000 (07:34 -0500)
committerCash Costello <cash.costello@gmail.com>
Mon, 7 Nov 2011 12:36:57 +0000 (07:36 -0500)
mod/custom_index/start.php

index 8577987985d8dd0ac795ba115121c5725fe9619a..48d03f27be0c314adbd36c93364a139950a3ba09 100644 (file)
@@ -4,7 +4,7 @@
  * 
  */
 
-register_elgg_event_handler('init', 'system', 'custom_index_init');
+elgg_register_event_handler('init', 'system', 'custom_index_init');
 
 function custom_index_init() {
 
@@ -12,7 +12,7 @@ function custom_index_init() {
        elgg_extend_view('css/elgg', 'custom_index/css');
 
        // Replace the default index page
-       register_plugin_hook('index', 'system', 'custom_index');
+       elgg_register_plugin_hook_handler('index', 'system', 'custom_index');
 }
 
 function custom_index($hook, $type, $return, $params) {