From: vincent@cubedesigners.com Date: Wed, 19 Dec 2018 14:27:44 +0000 (+0000) Subject: wait #2453 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b1080e613ece0a40ac5e3a0783f542b255415c93;p=cubeextranet.git wait #2453 @1.5 --- diff --git a/inc/ws/Util/html5/class.ws.html5.php b/inc/ws/Util/html5/class.ws.html5.php index 3db883a35..cd935441a 100644 --- a/inc/ws/Util/html5/class.ws.html5.php +++ b/inc/ws/Util/html5/class.ws.html5.php @@ -4,6 +4,18 @@ class wsHTML5 { protected static $uaPrefixes = array('-moz-', '-webkit-', '-o-', '-ms-', ''); + /** + * @param $book_id + * @param string $version + * @param bool $phonegap + * @param string $phonegapVersion + * @param null $dir + * @param bool $standalone + * @param bool $appcache + * @param bool $home + * @param null $book + * @return wsHTML5Compiler + */ public static function compilerFactory($book_id, $version = 'stable', $phonegap = false, $phonegapVersion = 'latest', $dir = null, $standalone = false, $appcache = false, $home = false, $book = null) { if (is_null($version)) { diff --git a/inc/ws/Util/html5/master/class.ws.html5.seo.php b/inc/ws/Util/html5/master/class.ws.html5.seo.php index 1dd123a4b..c094021bb 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.seo.php +++ b/inc/ws/Util/html5/master/class.ws.html5.seo.php @@ -58,6 +58,7 @@ class wsHTML5Seo foreach ($a as $item) { $page = $item['page'] + $offsetPage; + $item['url'] = CubeIT_Text::removeAccents($item['url']); foreach ($item as $k => $v) { if ($k == 'page') { continue; @@ -202,7 +203,7 @@ class wsHTML5SeoPage public function getURL() { if (null === $this->url) { - return $this->page . '-' . CubeIT_Text::str2URL($this->title) . '.html'; + return $this->page . '-' . CubeIT_Text::str2URL(CubeIT_Text::removeAccents($this->title)) . '.html'; } return $this->url; }