$tolinks = array_merge($tolinks, $fromlinks);\r
$torulers = array_merge($torulers, $fromrulers);\r
\r
- $dao->setLinksAndRulers($to, $tolinks, $torulers, 'Copy links from #' . $from . ' to #' . $to,$core->user->utilisateur_id);\r
+ $dao->setLinksAndRulers($to, $tolinks, $torulers, 'Copy links from #' . $from . ' to #' . $to, $core->user->utilisateur_id);\r
}\r
\r
public static function importBooks($oldBooks) {\r
wsLang::getV1Translations();\r
}\r
\r
+ public static function appendDocument($args) {\r
+ global $core;\r
+ $book_id = $args[0];\r
+ $document_id = $args[1];\r
+ $dao=new wsDAOBook($core->con);\r
+ $dao->appendDocument($book_id, $document_id);\r
+ }\r
+\r
public static function reprocessVideos($args) {\r
global $core;\r
\r
copy($source, $localPath);\r
}\r
}\r
+\r
+ $workingDir = WS_BOOKS . '/working/' . $book_id . '/';\r
+ if (file_exists($workingDir . 'media')) {\r
+ $cp = new cubeCommandLine('cp');\r
+ $cp->setPath(CONVERTER_PATH);\r
+ $cp->setArg('r');\r
+ $cp->setArg(null, $workingDir . 'media');\r
+ $cp->setArg(null, $finalDir . 'data');\r
+ $cp->execute();\r
+ }\r
+\r
return $res;\r
}\r
\r