Files: Fix wrong attribute name in OC_Search_Provider_File
This commit is contained in:
parent
3d3190309f
commit
8c7b13db70
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@ class OC_Search_Provider_File extends OC_Search_Provider{
|
||||||
$results=array();
|
$results=array();
|
||||||
foreach($files as $fileData){
|
foreach($files as $fileData){
|
||||||
$file=$fileData['path'];
|
$file=$fileData['path'];
|
||||||
if($fileData['mime']=='httpd/unix-directory'){
|
$mime=$fileData['mimetype'];
|
||||||
|
if($mime=='httpd/unix-directory'){
|
||||||
$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'index.php' ).'?dir='.$file,'Files');
|
$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'index.php' ).'?dir='.$file,'Files');
|
||||||
}else{
|
}else{
|
||||||
$mime=$fileData['mime'];
|
|
||||||
$mimeBase=$fileData['mimepart'];
|
$mimeBase=$fileData['mimepart'];
|
||||||
switch($mimeBase){
|
switch($mimeBase){
|
||||||
case 'audio':
|
case 'audio':
|
||||||
|
|
Loading…
Reference in a new issue