Skip to content

Commit

Permalink
Merge pull request #86 from ONLYOFFICE/develop
Browse files Browse the repository at this point in the history
Release/1.1.3
  • Loading branch information
LinneyS authored Jun 27, 2017
2 parents bccf921 + 94d3015 commit 06143c5
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 1.1.3
## Added
- fixing bug

## 1.1.2
## Added
- translation
Expand Down
4 changes: 1 addition & 3 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<description>ONLYOFFICE integration app enables users to edit Office documents within ONLYOFFICE from OwnCloud. This will create a new Open in ONLYOFFICE action within the document library for Office documents. This allows multiple users to collaborate in real time and to save back those changes to OwnCloud.</description>
<licence>AGPL</licence>
<author>Ascensio System SIA</author>
<version>1.1.2</version>
<version>1.1.3</version>
<namespace>Onlyoffice</namespace>
<types>
<filesystem/>
Expand All @@ -24,8 +24,6 @@
<bugs>https://github.com/ONLYOFFICE/onlyoffice-owncloud/issues</bugs>
<repository type="git">https://github.com/ONLYOFFICE/onlyoffice-owncloud.git</repository>
<screenshot small-thumbnail="https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-owncloud/master/screenshots/main_small.png">https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-owncloud/master/screenshots/main.png</screenshot>
<screenshot>https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-owncloud/master/screenshots/new.png</screenshot>
<screenshot>https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-owncloud/master/screenshots/open.png</screenshot>
<screenshot>https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-owncloud/master/screenshots/settings.png</screenshot>
<dependencies>
<owncloud min-version="9.0" max-version="10.0" />
Expand Down
4 changes: 2 additions & 2 deletions controller/editorcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public function config($fileId) {
$key = $this->getKey($file);

$canEdit = isset($format["edit"]) && $format["edit"];
$callback = ($file->isUpdateable() && $canEdit ? $this->urlGenerator->linkToRouteAbsolute($this->appName . ".callback.track", ["doc" => $hashCallback]) : NULL);
$callback = ($file->isUpdateable() && $canEdit ? $this->urlGenerator->linkToRouteAbsolute($this->appName . ".callback.track", ["doc" => $hashCallback]) : "");

if (!empty($this->config->GetStorageUrl())) {
$callback = str_replace($this->urlGenerator->getAbsoluteURL("/"), $this->config->GetStorageUrl(), $callback);
Expand All @@ -383,7 +383,7 @@ public function config($fileId) {
"editorConfig" => [
"callbackUrl" => $callback,
"lang" => \OC::$server->getL10NFactory("")->get("")->getLanguageCode(),
"mode" => ($callback === NULL ? "view" : "edit"),
"mode" => (empty($callback) ? "view" : "edit"),
"user" => [
"id" => $userId,
"name" => $this->userSession->getUser()->getDisplayName()
Expand Down
Binary file modified screenshots/main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/main_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshots/new.png
Binary file not shown.
Binary file removed screenshots/open.png
Binary file not shown.
Binary file modified screenshots/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06143c5

Please sign in to comment.