From: vincent@cubedesigners.com Date: Mon, 19 Mar 2012 13:30:15 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ee1dc22f401e7ac733164c4375e67db9a1e32891;p=cubeextranet.git --- diff --git a/fluidbook/icones/1/nav-previous.png b/fluidbook/icones/1/nav-previous.png new file mode 100644 index 000000000..6f67e155c Binary files /dev/null and b/fluidbook/icones/1/nav-previous.png differ diff --git a/inc/ws/Util/class.ws.links.php b/inc/ws/Util/class.ws.links.php index 2a3b8f7dd..f4c73a659 100644 --- a/inc/ws/Util/class.ws.links.php +++ b/inc/ws/Util/class.ws.links.php @@ -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);