aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--start.php15
1 files changed, 12 insertions, 3 deletions
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');
+ }
+
}
/**