From 0ac81a69f99e737afb8cd7319fabf9f5b268a510 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 20 Sep 2021 09:59:07 +0000 Subject: [PATCH] wait #4691 @0.25 --- fluidbook/tools/fwstk/.idea/misc.xml | 25 +-- .../tools/fwstk/.idea/runConfigurations.xml | 10 + fluidbook/tools/fwstk/.idea/workspace.xml | 185 +++++++++--------- .../class.ws.packager.win.exe.html.php | 4 +- 4 files changed, 111 insertions(+), 113 deletions(-) create mode 100644 fluidbook/tools/fwstk/.idea/runConfigurations.xml diff --git a/fluidbook/tools/fwstk/.idea/misc.xml b/fluidbook/tools/fwstk/.idea/misc.xml index 4aff69c56..bec7cd5ba 100644 --- a/fluidbook/tools/fwstk/.idea/misc.xml +++ b/fluidbook/tools/fwstk/.idea/misc.xml @@ -1,5 +1,8 @@ + + @@ -181,28 +184,6 @@ - + + + + + - C:\Users\Vincent\AppData\Roaming\Subversion + C:\Users\vince\AppData\Roaming\Subversion 125 @@ -462,6 +474,7 @@ + 1487172253077 @@ -579,12 +592,6 @@ - - - - - - diff --git a/inc/ws/Util/packager/class.ws.packager.win.exe.html.php b/inc/ws/Util/packager/class.ws.packager.win.exe.html.php index 234ade5f8..de1a09ae9 100644 --- a/inc/ws/Util/packager/class.ws.packager.win.exe.html.php +++ b/inc/ws/Util/packager/class.ws.packager.win.exe.html.php @@ -20,10 +20,10 @@ class wsPackagerWinEXEHTML extends wsPackager $this->_clean = false; if ($this->book->parametres->offlineTitle == "") { - $this->exeName = cubeText::str2URL(mb_substr($this->book->parametres->title, 0, $this->exenameMaxlength)); + $this->exeName = $this->book->book_id . '-' . trim(cubeText::str2URL(mb_substr($this->book->parametres->title, 0, $this->exenameMaxlength - 6)), '-'); $this->appName = $this->book->parametres->title; } else { - $this->exeName = cubeText::str2URL(mb_substr($this->book->parametres->offlineTitle, 0, $this->exenameMaxlength)); + $this->exeName = trim(cubeText::str2URL(mb_substr($this->book->parametres->offlineTitle, 0, $this->exenameMaxlength)), '-'); $this->appName = $this->book->parametres->offlineTitle; } -- 2.39.5