mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 22:17:33 +00:00
- changed implementation of getDir() to support multi level content dirs
This commit is contained in:
parent
1b779360a5
commit
bb47e2b412
|
@ -158,7 +158,12 @@ class LetoDMS_Core_Document { /* {{{ */
|
|||
* @return string directory of document
|
||||
*/
|
||||
function getDir() { /* {{{ */
|
||||
return $this->_id."/";
|
||||
if($this->_document->_dms->maxDirID) {
|
||||
$dirid = (int) (($this->_id-1) / $this->_document->_dms->maxDirID) + 1;
|
||||
return $dirid."/".$this->_id."/";
|
||||
} else {
|
||||
return $this->_id."/";
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user