mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 02:20:41 +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) { /* {{{ */
|
function addToClipboard($object) { /* {{{ */
|
||||||
/* id is only set if load() was called before */
|
/* id is only set if load() was called before */
|
||||||
if($this->id) {
|
if($this->id) {
|
||||||
$dms = $object->_dms;
|
$dms = $object->getDMS();
|
||||||
if($object->isType('document')) {
|
if($object->isType('document')) {
|
||||||
if(!in_array($object->getID(), $this->data['clipboard']['docs']))
|
if(!in_array($object->getID(), $this->data['clipboard']['docs']))
|
||||||
array_push($this->data['clipboard']['docs'], $object->getID());
|
array_push($this->data['clipboard']['docs'], $object->getID());
|
||||||
|
|
@ -317,7 +317,7 @@ class SeedDMS_Session {
|
||||||
function removeFromClipboard($object) { /* {{{ */
|
function removeFromClipboard($object) { /* {{{ */
|
||||||
/* id is only set if load() was called before */
|
/* id is only set if load() was called before */
|
||||||
if($this->id) {
|
if($this->id) {
|
||||||
$dms = $object->_dms;
|
$dms = $object->getDMS();
|
||||||
if($object->isType('document')) {
|
if($object->isType('document')) {
|
||||||
$key = array_search($object->getID(), $this->data['clipboard']['docs']);
|
$key = array_search($object->getID(), $this->data['clipboard']['docs']);
|
||||||
if($key !== false)
|
if($key !== false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user