mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
ownCloud integration improvements
This commit is contained in:
parent
c0d016293d
commit
d30292d500
9 changed files with 170 additions and 59 deletions
|
|
@ -7,6 +7,15 @@ class OC_RainLoop_Helper
|
|||
*/
|
||||
public static function getAppUrl()
|
||||
{
|
||||
if (class_exists('\\OC\\URLGenerator') && isset(\OC::$server))
|
||||
{
|
||||
$oUrlGenerator = new \OC\URLGenerator(\OC::$server->getConfig());
|
||||
if ($oUrlGenerator)
|
||||
{
|
||||
return $oUrlGenerator->linkToRoute('rainloop_app');
|
||||
}
|
||||
}
|
||||
|
||||
$sRequestUri = empty($_SERVER['REQUEST_URI']) ? '': trim($_SERVER['REQUEST_URI']);
|
||||
$sRequestUri = preg_replace('/index.php\/.+$/', 'index.php/', $sRequestUri);
|
||||
$sRequestUri = $sRequestUri.'apps/rainloop/app/';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue