$this->version = $version;
+
if ($version == 'stable') {
$this->assets = WS_COMPILE_ASSETS . '/player/branches/master';
} else if ($version == 'dev') {
$this->assets = WS_COMPILE_ASSETS . '/player/' . ($location == 'git' ? 'branches' : $location) . '/' . $branch;
}
+
$this->phonegap = $phonegap;
$this->standalone = $standalone || $this->phonegap;
$this->appcache = $appcache;
if (is_null($dir)) {
$id = $book_id;
- if ($forceTheme) {
+ if ($forceTheme && strpos($id, '-') === false) {
$id .= '-' . $forceTheme;
}
$this->dir = WS_BOOKS . '/html5/' . $id . '/';
unlink($minimized);
}
+
+
if (file_exists($tmp) && filesize($tmp) > 0) {
if ($hasNonMin) {
$uglify = new CubeIT_CommandLine('/usr/local/bin/uglifyjs');