From 57140351cea7e0e5fbe98fe2a806f11328b2c4b0 Mon Sep 17 00:00:00 2001 From: steinm Date: Wed, 17 Nov 2010 07:42:31 +0000 Subject: [PATCH] - user LetoDMS_Documment::removeDocumentFile() to remove files, LetoDMS_Documentfile::remove() is obsolete --- inc/inc.ClassDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/inc.ClassDocument.php b/inc/inc.ClassDocument.php index 49378f84f..0b5b52a7b 100644 --- a/inc/inc.ClassDocument.php +++ b/inc/inc.ClassDocument.php @@ -1378,8 +1378,8 @@ class LetoDMS_Document { /* {{{ */ $res = $this->getDocumentFiles(); if (is_bool($res) && !$res) return false; - for ($i = 0; $i < count($this->_documentFiles); $i++) - if (!$this->_documentFiles[$i]->remove()) + foreach ($res as $documentfile) + if(!$this->removeDocumentFile($documentfile->getId())) return false; // TODO: versioning file?