]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Mar 2012 13:30:15 +0000 (13:30 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Mar 2012 13:30:15 +0000 (13:30 +0000)
fluidbook/icones/1/nav-previous.png [new file with mode: 0644]
inc/ws/Util/class.ws.links.php

diff --git a/fluidbook/icones/1/nav-previous.png b/fluidbook/icones/1/nav-previous.png
new file mode 100644 (file)
index 0000000..6f67e15
Binary files /dev/null and b/fluidbook/icones/1/nav-previous.png differ
index 2a3b8f7ddb0f4fc9d76c86a24289d0e3a7ff3679..f4c73a659cf48909153f0b63ebd1890ec1c52d61 100644 (file)
@@ -142,7 +142,7 @@ class wsLinks {
 
        public static function getDocumentVersionLinks($document_id, $time) {
                global $core;
-               $r = $core->con->select('SELECT * FROM document_links_versions WHERE document_id=' . $document_id . ' AND `update`=' . $time);
+               $r = $core->con->select('SELECT * FROM document_links_versions WHERE document_id=' . $document_id.' AND `update`<='.$time .' ORDER BY `update` DESC LIMIT 1');
                return self::_recordToLinks($r);
        }
 
@@ -176,6 +176,8 @@ class wsLinks {
                $links = array();
                $rulers = array();
 
+               fb($time);
+               
                foreach ($documents as $d) {
                        if (is_null($time)) {
                                $lr = self::getDocumentLastLinks($d);