Skip to content

Commit

Permalink
ELIS 2.5.9.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
brentboghosian committed Nov 12, 2014
1 parent dd505bc commit 383b502
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
22 changes: 12 additions & 10 deletions patches/repository/repository_ajax.php.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/repository/repository_ajax.php b/repository/repository_ajax.php
index d591a7c..330a3cc 100644
index d591a7c..d1ff4c3 100644
--- a/repository/repository_ajax.php
+++ b/repository/repository_ajax.php
@@ -51,7 +51,10 @@ $saveas_path = optional_param('savepath', '/', PARAM_PATH); // save as file
Expand Down Expand Up @@ -67,14 +67,18 @@ index d591a7c..330a3cc 100644

$reference = $repo->get_file_reference($source);

@@ -300,12 +321,58 @@ switch ($action) {
@@ -300,12 +321,60 @@ switch ($action) {
// {@link repository::copy_to_area()}.
$fileinfo = $repo->copy_to_area($reference, $record, $maxbytes, $areamaxbytes);

+ // RL EDIT: BJB130215 - ELIS Files (alfresco)
+ $decodedsrc = unserialize(base64_decode($source));
+ // RL EDIT: BJB140918, BJB130215 - ELIS Files (alfresco)
+ // error_log("repository_ajax.php::download (IV): saveas_path = {$saveas_path}, toelisfiles = {$toelisfiles}");
+ if ($toelisfiles) {
+ try {
+ $decodedsrc = @unserialize(base64_decode($reference));
+ } catch (Exception $e) {
+ $decodedsrc = null;
+ }
+ // Copying to ELIS Files (Alfresco repo)
+ $fpsrc = null;
+ $tempfname = false;
Expand Down Expand Up @@ -111,8 +115,6 @@ index d591a7c..330a3cc 100644
+ $err->error = get_string('cannotdownload', 'repository');
+ die(json_encode($err));
+ }
+ } else { // TBD ??? is the following even required ???
+ $fileinfo = $repo->copy_to_area($source, $record, $maxbytes);
+ }
+ // End RL EDIT
+
Expand All @@ -126,7 +128,7 @@ index d591a7c..330a3cc 100644
if (empty($downloadedfile['path'])) {
$err->error = get_string('cannotdownload', 'repository');
die(json_encode($err));
@@ -313,15 +380,60 @@ switch ($action) {
@@ -313,15 +382,60 @@ switch ($action) {

// Check if exceed maxbytes.
if ($maxbytes != -1 && filesize($downloadedfile['path']) > $maxbytes) {
Expand Down Expand Up @@ -188,7 +190,7 @@ index d591a7c..330a3cc 100644
if (empty($info)) {
$info['e'] = get_string('error', 'moodle');
}
@@ -331,8 +443,144 @@ switch ($action) {
@@ -331,8 +445,144 @@ switch ($action) {
die;
}
break;
Expand Down Expand Up @@ -333,7 +335,7 @@ index d591a7c..330a3cc 100644
ajax_check_captured_output();
echo json_encode($result);
break;
@@ -345,7 +593,53 @@ switch ($action) {
@@ -345,7 +595,53 @@ switch ($action) {
$newfilepath = required_param('newfilepath', PARAM_PATH);
$newfilename = required_param('newfilename', PARAM_FILE);

Expand Down Expand Up @@ -387,7 +389,7 @@ index d591a7c..330a3cc 100644
ajax_check_captured_output();
echo json_encode($info);
break;
@@ -359,3 +653,73 @@ switch ($action) {
@@ -359,3 +655,73 @@ switch ($action) {

break;
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

defined('MOODLE_INTERNAL') || die();

$version = 2013051408.00; // 20130514 = branching date YYYYMMDD - do not modify!
$version = 2013051409.00; // 20130514 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches
// .XX = incremental changes

$release = '2.5.8 (Build: 20140908)'; // Human-friendly version name
$release = '2.5.9 (Build: 20141110)'; // Human-friendly version name

$branch = '25'; // this version's branch
$maturity = MATURITY_STABLE; // this version's maturity level

0 comments on commit 383b502

Please sign in to comment.