From 9469c9947f967cdb9b8423738f1d8c761061f691 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Fri, 11 May 2012 16:00:10 +0200 Subject: [PATCH] fix warning 'unknown var appsDir' --- apps/user_webfinger/host-meta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_webfinger/host-meta.php b/apps/user_webfinger/host-meta.php index 8e9985a2e1..c3d6f0ed2c 100644 --- a/apps/user_webfinger/host-meta.php +++ b/apps/user_webfinger/host-meta.php @@ -3,7 +3,7 @@ $hostMetaHeader = array( 'Access-Control-Allow-Origin' => '*', 'Content-Type' => 'application/xrd+json' ); -$ownCloudDir = dirname($appsDir); +$ownCloudDir = dirname(dirname(dirname(__FILE__))); $docRoot = $_SERVER['DOCUMENT_ROOT']; try { $webRoot = substr(realpath($ownCloudDir), strlen(realpath($docRoot)));