diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-11-05 08:23:38 +0000 |
---|---|---|
committer | root <root@ops.vz.lan> | 2012-11-05 08:23:46 +0000 |
commit | cc75bdf9ef06e0bd408b877b2f7dd14a04588ee0 (patch) | |
tree | d203c3e5952c6d36bd772df843ae8e57daa23c1b | |
parent | c631c4c4ed4c403ad152b2bdfc1c03f3ace48465 (diff) | |
download | elgg-cc75bdf9ef06e0bd408b877b2f7dd14a04588ee0.tar.gz elgg-cc75bdf9ef06e0bd408b877b2f7dd14a04588ee0.tar.bz2 |
add upgrade and change networks urls.
-rw-r--r-- | start.php | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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');
+ }
+
}
/**
|