Skip to content

Commit

Permalink
Merge pull request #63 from oat-sa/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jbout committed May 11, 2016
2 parents 09ea1dc + 5d17136 commit f4718be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions actions/MediaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ public function getFile()
$fileManagement = $this->getServiceManager()->get(FileManagement::SERVICE_ID);

if($fileInfo['mime'] === 'application/qti+xml'){
\tao_helpers_Http::returnStream($fileManagement->getFileStream($link), $fileManagement->getFileSize($link));
\tao_helpers_Http::returnStream($fileManagement->getFileStream($link));
return;
}
if($this->hasRequestParameter('xml')){
$this->returnJson(htmlentities((string)$fileManagement->getFileStream($link)));
}
else{
\tao_helpers_Http::returnStream($fileManagement->getFileStream($link), $fileManagement->getFileSize($link), $fileInfo['mime']);
\tao_helpers_Http::returnStream($fileManagement->getFileStream($link), $fileInfo['mime']);
}
} else {
throw new \common_exception_Error('invalid media identifier');
Expand Down
4 changes: 2 additions & 2 deletions manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
'label' => 'extension-tao-mediamanager',
'description' => 'TAO media manager extension',
'license' => 'GPL-2.0',
'version' => '0.4.3',
'version' => '0.5.0',
'author' => 'Open Assessment Technologies SA',
'requires' => array(
'tao' => '>=2.16.0',
'tao' => '>=3.0.0',
'taoItems' => '>=2.9'
),
'models' => array(
Expand Down
4 changes: 1 addition & 3 deletions scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ public function update($initialVersion)
$currentVersion = '0.3.0';
}

$this->skip('0.3.0','0.4.3');

return null;
$this->skip('0.3.0','0.5.0');
}
}
2 changes: 1 addition & 1 deletion views/build/grunt/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function(grunt) {
modules : [{
name: 'taoMediaManager/controller/routes',
include : ext.getExtensionsControllers(['taoMediaManager']),
exclude : ['mathJax', 'mediaElement'].concat(libs)
exclude : ['mathJax'].concat(libs)
}]
}
};
Expand Down

0 comments on commit f4718be

Please sign in to comment.