Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/adminsection.php2
-rw-r--r--lib/adminsettings.php2
-rw-r--r--lib/appconfig.php2
-rw-r--r--lib/crypt.php2
-rw-r--r--lib/directeditor.php8
-rw-r--r--lib/documentservice.php2
-rw-r--r--lib/filecreator.php2
-rw-r--r--lib/fileutility.php2
-rw-r--r--lib/templatemanager.php2
9 files changed, 13 insertions, 11 deletions
diff --git a/lib/adminsection.php b/lib/adminsection.php
index 9156b1e..04cb230 100644
--- a/lib/adminsection.php
+++ b/lib/adminsection.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
diff --git a/lib/adminsettings.php b/lib/adminsettings.php
index 7d84c14..7d6155b 100644
--- a/lib/adminsettings.php
+++ b/lib/adminsettings.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
diff --git a/lib/appconfig.php b/lib/appconfig.php
index 2560b6f..88a101e 100644
--- a/lib/appconfig.php
+++ b/lib/appconfig.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
diff --git a/lib/crypt.php b/lib/crypt.php
index 5ee6fe2..ccece98 100644
--- a/lib/crypt.php
+++ b/lib/crypt.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
diff --git a/lib/directeditor.php b/lib/directeditor.php
index 7d73ff7..601e71a 100644
--- a/lib/directeditor.php
+++ b/lib/directeditor.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
@@ -225,13 +225,15 @@ class DirectEditor implements IEditor {
]);
$filePath = $file->getPath();
- $filePath = preg_replace("/^" . $userId . "/", "", $filePath);
+ $filePath = preg_replace("/^\/" . $userId . "\/files/", "", $filePath);
+
$params = [
"documentServerUrl" => $documentServerUrl,
"fileId" => null,
"filePath" => $filePath,
"shareToken" => null,
- "directToken" => $directToken
+ "directToken" => $directToken,
+ "inframe" => false
];
$response = new TemplateResponse($this->appName, "editor", $params, "base");
diff --git a/lib/documentservice.php b/lib/documentservice.php
index bef5c04..1fbb7cf 100644
--- a/lib/documentservice.php
+++ b/lib/documentservice.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
diff --git a/lib/filecreator.php b/lib/filecreator.php
index 85c0a69..31c18e8 100644
--- a/lib/filecreator.php
+++ b/lib/filecreator.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
diff --git a/lib/fileutility.php b/lib/fileutility.php
index 36cee28..75606b1 100644
--- a/lib/fileutility.php
+++ b/lib/fileutility.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License
diff --git a/lib/templatemanager.php b/lib/templatemanager.php
index 71ad53d..b9c0911 100644
--- a/lib/templatemanager.php
+++ b/lib/templatemanager.php
@@ -1,7 +1,7 @@
<?php
/**
*
- * (c) Copyright Ascensio System SIA 2019
+ * (c) Copyright Ascensio System SIA 2020
*
* This program is a free software product.
* You can redistribute it and/or modify it under the terms of the GNU Affero General Public License