mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
check for latest content
This commit is contained in:
parent
5fc7c85bf2
commit
a00655932b
|
@ -114,8 +114,10 @@ switch($command) {
|
||||||
$result = array();
|
$result = array();
|
||||||
foreach($hits['docs'] as $hit) {
|
foreach($hits['docs'] as $hit) {
|
||||||
if($hit->getAccessMode($user, 'search') >= M_READ) {
|
if($hit->getAccessMode($user, 'search') >= M_READ) {
|
||||||
|
if($hit->getLatestContent()) {
|
||||||
// $result[] = $hit->getID().'#'.$hit->getName();
|
// $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');
|
header('Content-Type: application/json');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user