}\r
\r
protected function getSWFFiles() {\r
- return array('index.swf', 'player.swf');\r
+ return array(WS_COMPILE_ASSETS . '/index.swf', WS_COMPILE_ASSETS . '/player.swf');\r
}\r
\r
protected function preparePackage() {\r
}\r
\r
protected function _getLabelOfPage($page) {\r
- if(!isset($this->_chapters)){\r
+ if (!isset($this->_chapters)) {\r
$this->_chapters = $this->book->chapters;\r
}\r
- \r
- \r
+\r
+\r
if (isset($this->_labels[$page])) {\r
return $this->_labels[$page];\r
}\r
return $this->_labels[1];\r
}\r
\r
- \r
+\r
$virtual = $this->_getVirtualPage($page);\r
\r
$candidates = array();\r
- foreach ($chapters as $c) {\r
+ foreach ($this->_chapters as $c) {\r
if ($c->page == $virtual) {\r
$candidates[] = $c;\r
}\r