OpenID now won't load if curl is not available

This commit is contained in:
Kamil Domanski 2011-06-23 18:18:48 +02:00
parent 1ce24d892b
commit 6452f5b5cb
1 changed files with 5 additions and 0 deletions

View File

@ -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"));