mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
check for latest content
This commit is contained in:
parent
5fc7c85bf2
commit
a00655932b
|
@ -114,8 +114,10 @@ switch($command) {
|
|||
$result = array();
|
||||
foreach($hits['docs'] as $hit) {
|
||||
if($hit->getAccessMode($user, 'search') >= M_READ) {
|
||||
if($hit->getLatestContent()) {
|
||||
// $result[] = $hit->getID().'#'.$hit->getName();
|
||||
$result[] = array('type'=>'D', 'id'=>$hit->getId(), 'name'=>htmlspecialchars($hit->getName()), 'path'=>htmlspecialchars($hit->getParent()->getFolderPathPlain(true, '/')));
|
||||
$result[] = array('type'=>'D', 'id'=>$hit->getId(), 'name'=>htmlspecialchars($hit->getName()), 'path'=>htmlspecialchars($hit->getParent()->getFolderPathPlain(true, '/')));
|
||||
}
|
||||
}
|
||||
}
|
||||
header('Content-Type: application/json');
|
||||
|
|
Loading…
Reference in New Issue
Block a user