}
/**
- * Returns the base filesystem path of the App
+ * Returns the base Friendica filesystem path without trailing slash
*
* It first checks for the internal variable, then for DOCUMENT_ROOT and
* finally for PWD
throw new \Exception(sprintf('\'%s\' is not a valid basepath', $baseDir));
}
- return $baseDir;
+ return rtrim($baseDir, '/');
}
/**