From: vincent@cubedesigners.com Date: Tue, 27 Nov 2012 14:24:20 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6ccd8e5f8d1456749edff85169be9cf2a23d481b;p=cubeextranet.git --- diff --git a/fluidbook/compile/index.html b/fluidbook/compile/index.html index 705b181d2..61c289505 100644 --- a/fluidbook/compile/index.html +++ b/fluidbook/compile/index.html @@ -13,9 +13,9 @@ $facebook $description $title - + - + $ga + $redirectScript
diff --git a/inc/ws/Util/packager/class.ws.packager.html.php b/inc/ws/Util/packager/class.ws.packager.html.php index 80c60e67b..163719d72 100644 --- a/inc/ws/Util/packager/class.ws.packager.html.php +++ b/inc/ws/Util/packager/class.ws.packager.html.php @@ -125,12 +125,14 @@ class wsPackagerHTML extends wsPackager { if ($page == 1) { $dest = 'index.html'; $title = $this->book->parametres->title; + $sp = ''; } else { $label = $this->_getLabelOfPage($page); $title = $label . ' - ' . $this->book->parametres->title; $dest = 'pages/' . $page . '-' . mb_strtolower(cubeText::str2URL($label)) . '.html'; $pathToIndex = '../index.swf'; $pathToGetflash = '../getflash.gif'; + $sp = '../'; $redirectScript = ''; } $alt = ''; @@ -157,6 +159,7 @@ class wsPackagerHTML extends wsPackager { $data = str_replace('$title', $this->escape($title), $data); $data = str_replace('$pathToGetflash', $pathToGetflash, $data); $data = str_replace('$redirectScript', $redirectScript, $data); + $data = str_replace('$sp', $sp, $data); file_put_contents($this->vdir . $dest, $data);