$html5 = $html5 && !$this->isUpToDate($book, 'html5');\r
\r
\r
- if ($v1 || $v2) {\r
- fb(time(), 'Compile PDF & Widget');\r
- $this->compilePDF($book, $pages);\r
- $this->compileWidget($book, $pages);\r
- }\r
+\r
$res = '';\r
if ($v1) {\r
fb(time(), 'Compile V1');\r
$res.=$this->compileHTML5($book_id);\r
$this->touchCompile($book_id, 'html5');\r
}\r
+ if ($v1 || $v2) {\r
+ fb(time(), 'Compile PDF & Widget');\r
+ $this->compilePDF($book, $pages);\r
+ $this->compileWidget($book, $pages);\r
+ }\r
+ \r
fb(time(), 'End Compile');\r
return $res;\r
}\r
}\r
\r
protected function getSWFFiles() {\r
- return array(WS_COMPILE_ASSETS . '/index.swf', WS_COMPILE_ASSETS . '/player.swf');\r
+ return array('index.swf', 'player.swf');\r
}\r
\r
protected function preparePackage() {\r