From: Pablo Martin Date: Mon, 5 Nov 2012 08:23:38 +0000 (+0000) Subject: add upgrade and change networks urls. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cc75bdf9ef06e0bd408b877b2f7dd14a04588ee0;p=lorea%2Felgg.git add upgrade and change networks urls. --- diff --git a/start.php b/start.php index 1bf85eb74..d59bb2dd1 100644 --- a/start.php +++ b/start.php @@ -25,9 +25,9 @@ function openid_client_init() { elgg_register_library('openid_client', "$base/helpers.php"); elgg_set_config('openid_providers', array( - 'N-1' => 'https://n-1.cc/openid/', - 'Ecoxarxes' => 'https://cooperativa.ecoxarxes.cat/openid/', - 'Anillosur' => 'https://anillosur.cc/openid/', + 'N-1' => 'https://n-1.cc/mod/openid_server/server.php', + 'Ecoxarxes' => 'https://cooperativa.ecoxarxes.cat/mod/openid_server/server.php', + 'Anillosur' => 'https://anillosur.cc/mod/openid_server/server.php', // ... )); @@ -36,6 +36,15 @@ function openid_client_init() { // the return to page needs to be public elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'openid_client_public'); + elgg_register_event_handler('upgrade', 'system', 'openid_client_run_upgrades'); + +} + +function openid_client_run_upgrades() { + if (include_once(elgg_get_plugins_path() . 'upgrade-tools/lib/upgrade_tools.php')) { + upgrade_module_run('openid_client'); + } + } /**