mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
bugfix - default language no longer changes while saving prefs and using subdomain lang selection.
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/prefs.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/prefs.php,v $
|
||||||
| $Revision: 1.1.1.1 $
|
| $Revision: 1.2 $
|
||||||
| $Date: 2006-12-02 04:33:28 $
|
| $Date: 2007-02-16 01:13:19 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
require_once("../class2.php");
|
require_once("../class2.php");
|
||||||
@@ -46,7 +46,7 @@ if ($_POST['submit_resetdisplaynames'])
|
|||||||
|
|
||||||
if (isset($_POST['updateprefs']))
|
if (isset($_POST['updateprefs']))
|
||||||
{
|
{
|
||||||
unset($_POST['updateprefs']);
|
unset($_POST['updateprefs'],$_POST['sitelanguage']);
|
||||||
|
|
||||||
$_POST['cookie_name'] = str_replace(array(" ","."), "_", $_POST['cookie_name']);
|
$_POST['cookie_name'] = str_replace(array(" ","."), "_", $_POST['cookie_name']);
|
||||||
$_POST['cookie_name'] = preg_replace("#[^a-zA-Z0-9_]#", "", $_POST['cookie_name']);
|
$_POST['cookie_name'] = preg_replace("#[^a-zA-Z0-9_]#", "", $_POST['cookie_name']);
|
||||||
@@ -54,6 +54,7 @@ if (isset($_POST['updateprefs']))
|
|||||||
$_POST['siteurl'] = trim($_POST['siteurl']) ? trim($_POST['siteurl']) : SITEURL;
|
$_POST['siteurl'] = trim($_POST['siteurl']) ? trim($_POST['siteurl']) : SITEURL;
|
||||||
$_POST['siteurl'] = substr($_POST['siteurl'], -1) == "/" ? $_POST['siteurl'] : $_POST['siteurl']."/";
|
$_POST['siteurl'] = substr($_POST['siteurl'], -1) == "/" ? $_POST['siteurl'] : $_POST['siteurl']."/";
|
||||||
|
|
||||||
|
|
||||||
foreach($_POST as $key => $value)
|
foreach($_POST as $key => $value)
|
||||||
{
|
{
|
||||||
$pref[$key] = $tp->toDB($value);
|
$pref[$key] = $tp->toDB($value);
|
||||||
|
Reference in New Issue
Block a user