: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
dirs = filter(fm.files());
prevSortTreeview = fm.sortAlsoTreeview;
// append volume roots at first
updateTree(jQuery.map(fm.roots, function(h) {
return dir && !dir.phash? dir : null;
if (!Object.keys(hasMoreDirs).length) {
updateArrows(dirs, loaded);
jQuery.each(ends, function(i, end) {
var vid = fm.file(fm.root(end)).volumeid;
jQuery.each(dirs, function(i, d) {
endsMap[endsVid[d.volumeid] || endsVid[topVid]].push(d);
jQuery.each(ends, function(i, endHash) {
current = selectPages(fm.file(endHash));
updateArrows(dirs, loaded);
jQuery.each(endsMap, function(endHash, dirs) {
current = selectPages(fm.file(endHash));
updateArrows(dirs, loaded);