]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check if webfinger is enabled
authorLukas Reschke <lukas@statuscode.ch>
Fri, 10 Aug 2012 14:38:32 +0000 (16:38 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 24 Aug 2012 12:58:48 +0000 (14:58 +0200)
apps/user_webfinger/host-meta.php
apps/user_webfinger/webfinger.php

index 32ffb512057f83237cd00463f6faa62807d01251..a4f494ce837222b0cfc7ed501c2b95a6b7fcc2d2 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+if (!OCP\App::isEnabled("user_webfinger")) {
+       return;
+}
+
 $hostMetaHeader = array(
        'Access-Control-Allow-Origin' => '*',
        'Content-Type' => 'application/xrd+json'
index e75c546c2cb8017b5f79c4dcb68b4aaed42e09af..0f882a96cf858927f92c624337006f4a46e2c81f 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+if (!OCP\App::isEnabled("user_webfinger")) {
+       return;
+}
+
 header("Access-Control-Allow-Origin: *");
 header("Content-Type: application/xrd+json");
 
@@ -15,7 +19,7 @@ header("Content-Type: application/xrd+json");
  *     href="<?php echo WF_BASEURL; ?>/apps/myApp/profile.php?user=<?php echo WF_USER; ?>">
  * </Link>
  *
'* but can also use complex database queries to generate the webfinger result
+ * but can also use complex database queries to generate the webfinger result
  **/
 // calculate the documentroot
 // modified version of the one in lib/base.php that takes the .well-known symlink into account