Permalink
Browse files

Merge branch 'wip-MDL-32106-MOODLE_21_STABLE' of git://github.com/mar…

…inaglancy/moodle into MOODLE_21_STABLE
  • Loading branch information...
2 parents 77c5c20 + 1d0ac18 commit 3d060749536339d25925675a13bca2bfb4ac22a8 @nebgor nebgor committed Mar 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 repository/filepicker.js
View
@@ -657,13 +657,13 @@ M.core_filepicker.init = function(Y, options) {
params['author'] = author.get('value');
}
- if (this.options.env == 'editor') {
+ if (this.options.externallink && this.options.env == 'editor') {
// in editor, images are stored in '/' only
params.savepath = '/';
// when image or media button is clicked
if ( this.options.return_types != 1 ) {
- var linkexternal = Y.one('#linkexternal-'+client_id).get('checked');
- if (linkexternal) {
+ var linkexternal = Y.one('#linkexternal-'+client_id);
+ if (linkexternal && linkexternal.get('checked')) {
params['linkexternal'] = 'yes';
}
} else {

0 comments on commit 3d06074

Please sign in to comment.