]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
removed some old code from thewire
authorcash <cash.costello@gmail.com>
Sat, 4 Feb 2012 23:19:10 +0000 (18:19 -0500)
committercash <cash.costello@gmail.com>
Sat, 4 Feb 2012 23:19:10 +0000 (18:19 -0500)
mod/thewire/start.php

index fdaf91355bb03d806ca42ae3e244076d7f8a73c1..ebfe295385da7201157f5d15e31163eb5a87b8c5 100644 (file)
@@ -18,12 +18,6 @@ elgg_register_event_handler('init', 'system', 'thewire_init');
  * The Wire initialization
  */
 function thewire_init() {
-       global $CONFIG;
-
-       // this can be removed in favor of activate/deactivate scripts
-       if (!update_subtype('object', 'thewire', 'ElggWire')) {
-               add_subtype('object', 'thewire', 'ElggWire');
-       }
 
        // register the wire's JavaScript
        $thewire_js = elgg_get_simplecache_url('js', 'thewire');
@@ -68,7 +62,7 @@ function thewire_init() {
        elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'thewire_notify_message');
 
        // Register actions
-       $action_base = $CONFIG->pluginspath . 'thewire/actions';
+       $action_base = elgg_get_plugins_path() . 'thewire/actions';
        elgg_register_action("thewire/add", "$action_base/add.php");
        elgg_register_action("thewire/delete", "$action_base/delete.php");