Skip to content

Commit

Permalink
assignsubmission_collabora: add simple multi lang support (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
grabs authored Oct 9, 2020
1 parent de22970 commit b55f831
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cache:
- $HOME/.npm

addons:
postgresql: "9.5"
postgresql: "9.6"

services:
- mysql
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ moodle-assignsubmission_collabora
Changes
-------

### v3.9-r4

* 2020-10-03 - add simple multi lang support (#7)

### v3.9-r1

* 2020-06-24 - updated version.php, CHANGES.md & README.md
Expand Down
3 changes: 2 additions & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ public function get_view_url(stdClass $submission, stored_file $submissionfile,

$params = http_build_query(array(
'WOPISrc' => $callbackurl->out(),
'access_token' => $usertoken
'access_token' => $usertoken,
'lang' => collabora::get_collabora_lang(),
));

$viewurl = $collaboraurl . $params;
Expand Down
3 changes: 2 additions & 1 deletion tests/test-collabora.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
$getfileinfolink = $wopisrc ."?$callbackparam";
$params = http_build_query(array(
'WOPISrc' => $wopisrc,
'access_token' => $userid
'access_token' => $userid,
'lang' => \mod_collabora\collabora::get_collabora_lang(),
));
$doccollaboraurl = $urlsrc . $params;
break;
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
*/
defined ( 'MOODLE_INTERNAL' ) || die ();

$plugin->version = 2020062400;
$plugin->version = 2020092900;
$plugin->requires = 2018051700; // M3.5.
$plugin->component = 'assignsubmission_collabora';
$plugin->dependencies = array('mod_collabora' => 2019042800);
$plugin->release = 'v3.9-r1';
$plugin->dependencies = array('mod_collabora' => 2020092900);
$plugin->release = 'v3.9-r4';
$plugin->maturity = MATURITY_STABLE;

0 comments on commit b55f831

Please sign in to comment.