summaryrefslogtreecommitdiffstats
path: root/apps/user_openid
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2011-06-23 18:18:48 +0200
committerKamil Domanski <kdomanski@kdemail.net>2011-06-23 18:20:59 +0200
commit6452f5b5cb76b4a26ae8f114a55d09cfd482be52 (patch)
tree521a56bd48c253bb7fa63e31f76a392b4fb7b10e /apps/user_openid
parent1ce24d892b0e1ebb568930cee882d2be68c32240 (diff)
downloadnextcloud-server-6452f5b5cb76b4a26ae8f114a55d09cfd482be52.tar.gz
nextcloud-server-6452f5b5cb76b4a26ae8f114a55d09cfd482be52.zip
OpenID now won't load if curl is not available
Diffstat (limited to 'apps/user_openid')
-rw-r--r--apps/user_openid/appinfo/app.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_openid/appinfo/app.php b/apps/user_openid/appinfo/app.php
index fb3de10e2a8..2e238ed3f27 100644
--- a/apps/user_openid/appinfo/app.php
+++ b/apps/user_openid/appinfo/app.php
@@ -1,5 +1,10 @@
<?php
+//check if curl extension installed
+if (!in_array ('curl', get_loaded_extensions())){
+ return;
+}
+
require_once 'apps/user_openid/user_openid.php';
OC_APP::addSettingsPage( array( "id" => "user_openid_settings", 'order'=>1, "href" => OC_HELPER::linkTo( "user_openid", "settings.php" ), "name" => "OpenID"));