aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-11-05 08:23:38 +0000
committerroot <root@ops.vz.lan>2012-11-05 08:23:46 +0000
commitcc75bdf9ef06e0bd408b877b2f7dd14a04588ee0 (patch)
treed203c3e5952c6d36bd772df843ae8e57daa23c1b
parentc631c4c4ed4c403ad152b2bdfc1c03f3ace48465 (diff)
downloadelgg-cc75bdf9ef06e0bd408b877b2f7dd14a04588ee0.tar.gz
elgg-cc75bdf9ef06e0bd408b877b2f7dd14a04588ee0.tar.bz2
add upgrade and change networks urls.
-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');
+ }
+
}
/**