summaryrefslogtreecommitdiff
path: root/switch_lang.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-08 21:51:14 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-08 21:51:14 +0000
commit898b0ce65cf7e1c4fb9d32685ac59c819b4116cf (patch)
treeac729b0edcabb195cb17eb4c49b6f87e6a49bde9 /switch_lang.php
parent0122ce4dfec51fc359fba64743ade0280a134866 (diff)
downloadlanguages-898b0ce65cf7e1c4fb9d32685ac59c819b4116cf.tar.gz
languages-898b0ce65cf7e1c4fb9d32685ac59c819b4116cf.tar.bz2
languages-898b0ce65cf7e1c4fb9d32685ac59c819b4116cf.zip
php: introduce new method: getPref( $package, $pref, $defaut ) (order is open for discussion
tpl: $gBitPref.package.pref applied package name to all saves - should make database more organised and should allow more reliable uninstalls in the future
Diffstat (limited to 'switch_lang.php')
-rw-r--r--switch_lang.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/switch_lang.php b/switch_lang.php
index c23b29e..1b229d9 100644
--- a/switch_lang.php
+++ b/switch_lang.php
@@ -2,7 +2,7 @@
/**
* @package languages
* @subpackage functions
- * @version $Header: /cvsroot/bitweaver/_bit_languages/switch_lang.php,v 1.5 2006/02/06 00:08:19 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_languages/switch_lang.php,v 1.6 2006/02/08 21:51:14 squareing Exp $
*/
/**
@@ -19,7 +19,7 @@ if (isset($_SERVER['HTTP_REFERER'])) {
if( !empty( $_GET['language'] ) ) {
if($gBitSystem->isFeatureActive( 'feature_user_preferences' ) && $gBitUser->isRegistered() && $gBitSystem->isFeatureActive( 'change_language' ) ) {
- $gBitUser->storePreference( 'bitlanguage', $_GET['language'] );
+ $gBitUser->storePreference( 'bitlanguage', $_GET['language'], LANGUAGES_PKG_NAME );
} else {
$_SESSION["bitlanguage"] = $_GET['language'];
// $gBitLanguage->mLanguage will be read again in the location: redirect