Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 2022)
+++ branches/2.8.x/CHANGELOG	(revision 2023)
@@ -11,6 +11,8 @@
 ! = Update/Change
 ===============================================================================
 
+07 Dec-2013 Build 2023 Manuela v.d.Decken(DarkViper)
+# mod-MultiLingual misconfiguration of language switches solved
 06 Dec-2013 Build 2022 Manuela v.d.Decken(DarkViper)
 ! framework/initialize.php WB will die if magic_quotes is set to 'on'
 06 Dec-2013 Build 2021 Manuela v.d.Decken(DarkViper)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 2022)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 2023)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '2022');
+if(!defined('REVISION')) define('REVISION', '2023');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/modules/MultiLingual/htt/index.php
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/htt/index.php	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/htt/index.php	(nonexistent)
@@ -1,9 +0,0 @@
-<?php
-// *** This file is generated by WebsiteBaker Ver.2.8.3
-// *** Creation date: 2013-05-26T05:26:07+00:00
-// *** Do not modify this file manually
-// *** WB will rebuild this file from time to time!!
-// *************************************************
-	header('HTTP/1.1 301 Moved Permanently');
-	header('Location: ../../../index.php');
-// *************************************************
Index: branches/2.8.x/wb/modules/MultiLingual/htt/lang.htt
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/htt/lang.htt	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/htt/lang.htt	(nonexistent)
@@ -1,36 +0,0 @@
-{#
-/**
- *
- * @category        modules
- * @package         multilingial
- * @author          WebsiteBaker Project, Luisehahne
- * @copyright       2009-2012, WebsiteBaker Org. e.V.
- * @link            http://www.websitebaker2.org/
- * @license         http://www.gnu.org/licenses/gpl.html
- * @platform        WebsiteBaker 2.8.x
- * @requirements    PHP 5.2.2 and higher
- * @version         $Id:  $
- * @filesource      $HeadURL:  $
- * @lastmodified    $Date:  $
- *
- */
-#}
- 
-<div id="langmenu">
-
-<table style="background: transparent;">
-    <tbody>
-    <tr style="background: transparent;">
-{% for file in lang.FILES %}
-    <td style="width:{{ file.LANG_ICON_WIDTH }};vertical-align:middle;">
-    <a class="{{ file.LANG_ICON_CLASS }}" href="{{ file.LANG_PAGE_URL }}" title="{{ file.TEXT_PAGE_TITLE }}">
-    <span>
-    	<img style="border: none;" src="{{ file.URL_ICON_FOLDER }}/{{ file.LANG_ICON }}.{{ file.LANG_ICON_EXT }}" title="{{ file.TEXT_PAGE_TITLE }}" alt="{{ file.TEXT_PAGE_TITLE }}" />
-    </span>
-    </a>
-    </td>
-{% endfor %}
-    </tr>
-    </tbody>
-</table>
-</div>
Index: branches/2.8.x/wb/modules/MultiLingual/tpl/lang.twig
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/tpl/lang.twig	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/tpl/lang.twig	(nonexistent)
@@ -1,45 +0,0 @@
-{#
-/**
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-/**
- * lang.twig
- *
- * @category     Modules
- * @package      Modules_MultiLingual
- * @author       Werner v.d.Decken <wkl@isteam.de>
- * @author       Dietmar Wöllbrink <dietmar.woellbrink@websiteBaker.org>
- * @copyright    Werner v.d.Decken <wkl@isteam.de>
- * @license      http://www.gnu.org/licenses/gpl.html   GPL License
- * @version      1.6.8
- * @revision     $Revision$
- * @link         $HeadURL$
- * @lastmodified $Date$
- * @since        File available since 09.01.2013
- * @description  xyz
- */
-#}
-<div id="langmenu">
-{% for aTarget in aTargetList %}
- <a href="{{ aTarget.sUrl }}" {% if aTarget.bCurrent %}class="current" {% endif %}title="{{ aTarget.sTitle }}">
-<span>
-  <img src="{{ aTarget.sIconUrl }}flags/{{ aTarget.FilePrefix }}.png" class="width: 32px; height: 32px" 
-     title="{{ aTarget.sTitle }}" alt="{{ aTarget.sLongTitle }}" />
-    </span>
- </a>
-{% endfor %}
-</div>
\ No newline at end of file

Property changes on: branches/2.8.x/wb/modules/MultiLingual/tpl/lang.twig
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Date Revision Id HeadURL
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: branches/2.8.x/wb/modules/MultiLingual/tpl/lang.tpl
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/tpl/lang.tpl	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/tpl/lang.tpl	(nonexistent)
@@ -1,29 +0,0 @@
-{#
-/**
- *
- * @category        modules
- * @package         MultiLingial
- * @author          WebsiteBaker Project, Luisehahne
- * @copyright       2009-2012, WebsiteBaker Org. e.V.
- * @link            http://www.websitebaker2.org/
- * @license         http://www.gnu.org/licenses/gpl.html
- * @platform        WebsiteBaker 2.8.x
- * @requirements    PHP 5.2.2 and higher
- * @version         $Id$
- * @filesource      $HeadURL$
- * @lastmodified    $Date$
- *
- */
-#}
- 
-<div id="langmenu">
-{% for file in lang.FILES %}
-    <span style="width:{{ file.LANG_ICON_WIDTH }};vertical-align:middle;">
-    <a class="{{ file.LANG_ICON_CLASS }}" href="{{ file.LANG_PAGE_URL }}" title="{{ file.TEXT_PAGE_TITLE }}">
-    <span>
-    	<img style="border: none;" src="{{ file.URL_ICON_FOLDER }}/{{ file.LANG_ICON }}.{{ file.LANG_ICON_EXT }}" title="{{ file.TEXT_PAGE_TITLE }}" alt="{{ file.TEXT_PAGE_TITLE }}" />
-    </span>
-    </a>
-    </span>
-{% endfor %}
-</div>

Property changes on: branches/2.8.x/wb/modules/MultiLingual/tpl/lang.tpl
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Date Revision Id HeadURL
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: branches/2.8.x/wb/modules/MultiLingual/tpl/index.php
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/tpl/index.php	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/tpl/index.php	(nonexistent)
@@ -1,9 +0,0 @@
-<?php
-// *** This file is generated by WebsiteBaker Ver.2.8.3
-// *** Creation date: 2013-05-26T05:26:07+00:00
-// *** Do not modify this file manually
-// *** WB will rebuild this file from time to time!!
-// *************************************************
-	header('HTTP/1.1 301 Moved Permanently');
-	header('Location: ../../../index.php');
-// *************************************************

Property changes on: branches/2.8.x/wb/modules/MultiLingual/tpl/index.php
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Date Revision Id HeadURL
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: branches/2.8.x/wb/modules/MultiLingual/tpl/lang.html.twig
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/tpl/lang.html.twig	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/tpl/lang.html.twig	(revision 2023)
@@ -34,9 +34,12 @@
 #}
 <div id="langmenu">
 {% for aTarget in aTargetList %}
-	<a href="{{ aTarget.sTargetPageUrl }}" {% if aTarget.bCurrentLanguage %}class="current" {% endif %}title="{{ aTarget.sPageTitle }}">
+	<a href="{{ aTarget.sTargetPageUrl }}" {% if aTarget.bCurrentLanguage %}class="current" {% endif %}title="{{ aTarget.sToolTip }}">
 		<span>
-			<img style="width:32px; height:24px" src="{{ aTarget.sIconUrl }}flags/{{ aTarget.sImageType }}/{{ aTarget.sFilename }}.{{ aTarget.sImageType }}"  title="{{ aTarget.sPageTitle }}" alt="{{ aTarget.sToolTip }}" />
+			<img style="width:32px; height:24px" src="{{ aTarget.sIconUrl }}flags/
+				{{ aTarget.sImageType }}/{{ aTarget.sFilename }}.{{ aTarget.sImageType }}"
+				title="{{ aTarget.sPageTitle }}" alt="{{ aTarget.sToolTip }}"
+			/>
 		</span>
 	</a>
 {% endfor %}
Index: branches/2.8.x/wb/modules/MultiLingual/update_keys.php
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/update_keys.php	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/update_keys.php	(revision 2023)
@@ -66,3 +66,21 @@
 } else {
 	$admin->print_success($oTrans->MESSAGE_PAGES_UPDATE_SETTINGS, ADMIN_URL.'/pages/settings.php?page_id='.$temp_page_id );
 }
+/**
+ * Create repeated string
+ * @param integer $iRepeats  number of repetitions
+ * @param string  $sString   string to use for one indent (default: \t)
+ * @return string created string with repetitions of $sString
+ * @description create a string depending on number of repeats and a string for each repeat<br />
+ *              Gives a way to generate pretty formatted HTML code being outputted, by providing<br />
+ *              a certain number of TABs or SPACEs, according to the indent level.
+ */
+	function spacer($iRepeats = 1, $sString = "\t"){
+		// intval() converts the value into a natural, int number. 0 on invald values.
+		// max() transform negative values into 0
+		// str_repeat() creates a string of $iRepeats*($sString)
+		return str_repeat($sString, max(0, intval($iRepeats)));
+	}
+
+	echo "<option value=\"{$page['page_id']}\">$title</option>\n";
+	echo '<option value="'.$page['page_id'].'">'.$title.'</option>'.PHP_EOL;
Index: branches/2.8.x/wb/modules/MultiLingual/languages/index.php
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/languages/index.php	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/languages/index.php	(nonexistent)
@@ -1,9 +0,0 @@
-<?php
-// *** This file is generated by WebsiteBaker Ver.2.8.3
-// *** Creation date: 2013-05-26T05:26:07+00:00
-// *** Do not modify this file manually
-// *** WB will rebuild this file from time to time!!
-// *************************************************
-	header('HTTP/1.1 301 Moved Permanently');
-	header('Location: ../../../index.php');
-// *************************************************

Property changes on: branches/2.8.x/wb/modules/MultiLingual/languages/index.php
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Date Revision Id HeadURL
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: branches/2.8.x/wb/modules/MultiLingual/flags/index.php
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/flags/index.php	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/flags/index.php	(nonexistent)
@@ -1,9 +0,0 @@
-<?php
-// *** This file is generated by WebsiteBaker Ver.2.8.3
-// *** Creation date: 2013-05-26T05:26:07+00:00
-// *** Do not modify this file manually
-// *** WB will rebuild this file from time to time!!
-// *************************************************
-	header('HTTP/1.1 301 Moved Permanently');
-	header('Location: ../../../index.php');
-// *************************************************
Index: branches/2.8.x/wb/modules/MultiLingual/upgrade.php
===================================================================
--- branches/2.8.x/wb/modules/MultiLingual/upgrade.php	(revision 2022)
+++ branches/2.8.x/wb/modules/MultiLingual/upgrade.php	(revision 2023)
@@ -33,13 +33,13 @@
  * @description  provides a flexible posibility for changeing to a translated page
  */
 
-/* -------------------------------------------------------- */
+/* ------------------------------------------------------------------------------------ */
 // Must include code to stop this file being accessed directly
 if(!defined('WB_URL')) {
 	require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
 	throw new IllegalFileException();
 }
-/* -------------------------------------------------------- */
+/* ------------------------------------------------------------------------------------ */
 
 	function mod_MultiLingual_upgrade($bDebug=false) {
 		global $OK ,$FAIL;
