Skip to content

Commit

Permalink
Fix backward incompatibility in ft_defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
bmjstau committed Jul 13, 2018
1 parent 28e96ba commit 1092dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ft_defaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function checkMultipleToolbox(toolbox, keyfile)
function checkIncorrectPath
p = fileparts(mfilename('fullpath'));
incorrect = fullfile(p, 'compat', 'incorrect');
if contains(path, incorrect)
if ~isempty(strfind(path, incorrect))
ft_warning('Your path is set up incorrectly. You probably used addpath(genpath(''path_to_fieldtrip'')), this can lead to unexpected behaviour. See http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path');
end
end % function checkIncorrectPath

0 comments on commit 1092dac

Please sign in to comment.