fix warning 'unknown var appsDir'

This commit is contained in:
Michiel de Jong 2012-05-11 16:00:10 +02:00
parent 232788396d
commit 9469c9947f
1 changed files with 1 additions and 1 deletions

View File

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