diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 17:21:03 +0400 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 17:21:03 +0400 |
commit | 3e39901ec9b7612db94206d9fe07d3d6b49f74f0 (patch) | |
tree | 34258047bd60a00b4593906a1468be530f631a25 /user_webfinger | |
parent | 97a7afb1ebc2bd0ec59ac3dc8a53e2f21e93f335 (diff) |
adding space between) and {
Diffstat (limited to 'user_webfinger')
-rw-r--r-- | user_webfinger/host-meta.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user_webfinger/host-meta.php b/user_webfinger/host-meta.php index 6f6ac46eb..06e2c9c8d 100644 --- a/user_webfinger/host-meta.php +++ b/user_webfinger/host-meta.php @@ -3,19 +3,19 @@ if (!OCP\App::isEnabled("user_webfinger")) { return; } -if(class_exists('OC')){ +if(class_exists('OC')) { $WEBROOT=OC::$WEBROOT; }else{//not called trough remote.php try to guess the webroot the best we can from here // calculate the root directories $SERVERROOT=str_replace("\\",'/',substr(__FILE__,0,-strlen('apps/user_webfinger/host-meta.php'))); $WEBROOT=substr($SERVERROOT,strlen(realpath($_SERVER['DOCUMENT_ROOT']))); - if($WEBROOT!='' and $WEBROOT[0]!=='/'){ + if($WEBROOT!='' and $WEBROOT[0]!=='/') { $WEBROOT='/'.$WEBROOT; } } -if(substr($WEBROOT,-1)==='/'){ +if(substr($WEBROOT,-1)==='/') { $WEBROOT=substr($WEBROOT,0,-1); } |