mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
- fixed nasty bug in getDir()
This commit is contained in:
parent
c54512cb44
commit
32e52884b7
|
@ -158,8 +158,8 @@ class LetoDMS_Core_Document { /* {{{ */
|
||||||
* @return string directory of document
|
* @return string directory of document
|
||||||
*/
|
*/
|
||||||
function getDir() { /* {{{ */
|
function getDir() { /* {{{ */
|
||||||
if($this->_document->_dms->maxDirID) {
|
if($this->_dms->maxDirID) {
|
||||||
$dirid = (int) (($this->_id-1) / $this->_document->_dms->maxDirID) + 1;
|
$dirid = (int) (($this->_id-1) / $this->_dms->maxDirID) + 1;
|
||||||
return $dirid."/".$this->_id."/";
|
return $dirid."/".$this->_id."/";
|
||||||
} else {
|
} else {
|
||||||
return $this->_id."/";
|
return $this->_id."/";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user