mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
use getDMS() instead of accessing _dms in folder or document object
This commit is contained in:
parent
ab5ad7011c
commit
b4b635e96a
|
@ -294,7 +294,7 @@ class SeedDMS_Session {
|
|||
function addToClipboard($object) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$dms = $object->_dms;
|
||||
$dms = $object->getDMS();
|
||||
if($object->isType('document')) {
|
||||
if(!in_array($object->getID(), $this->data['clipboard']['docs']))
|
||||
array_push($this->data['clipboard']['docs'], $object->getID());
|
||||
|
@ -317,7 +317,7 @@ class SeedDMS_Session {
|
|||
function removeFromClipboard($object) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$dms = $object->_dms;
|
||||
$dms = $object->getDMS();
|
||||
if($object->isType('document')) {
|
||||
$key = array_search($object->getID(), $this->data['clipboard']['docs']);
|
||||
if($key !== false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user