mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD,cmd:search] fix #2490 support custom search method
See the wiki - https://github.com/Studio-42/elFinder/wiki/Custom-search-function Also closes #1037 .
This commit is contained in:
@@ -1165,8 +1165,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
* @author Naoki Sawada
|
||||
**/
|
||||
protected function doSearch($path, $q, $mimes) {
|
||||
if ($this->encoding || ! class_exists('FilesystemIterator', false)) {
|
||||
// non UTF-8 use elFinderVolumeDriver::doSearch()
|
||||
if (!empty($this->doSearchCurrentQuery['matchMethod']) || $this->encoding || ! class_exists('FilesystemIterator', false)) {
|
||||
// has custom match method or non UTF-8, use elFinderVolumeDriver::doSearch()
|
||||
return parent::doSearch($path, $q, $mimes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user