aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-02-03 11:28:34 +0000
committerplegall <plg@piwigo.org>2011-02-03 11:28:34 +0000
commit380d9ccc21091d6f272460104ee4afe1b92dc89c (patch)
treea0704692038d74a97f8a0b0b6de21416264ffb19 /include
parent1dc5c7ccfdba5f6177eeb7b9a5d10e9135ffabe8 (diff)
bug 1684 fixed: the fix for bug:1683 was an "automatic repair" but it adds
useless code. We couldn't create a migration task on the stable branch, but on trunk this is possible. git-svn-id: http://piwigo.org/svn/trunk@9074 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 2d3279e1a..cc8562323 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -812,47 +812,6 @@ function get_default_user_info($convert_str = true)
unset($cache['default_user']['user_id']);
unset($cache['default_user']['status']);
unset($cache['default_user']['registration_date']);
-
- // theme and language fields may be null in the database (see
- // bug:1683) This is absolutely not nice to have this code in this
- // very place, but it avoids a complexe upgrade with an "automatic
- // fix" in the database => this code should be removed after branch
- // 2.1 if a migration tasks performs the job the same way
- if (empty($cache['default_user']['theme']))
- {
- mass_updates(
- USER_INFOS_TABLE,
- array(
- 'primary' => array('user_id'),
- 'update' => array('theme')
- ),
- array(
- array(
- 'user_id' => $conf['default_user_id'],
- 'theme' => PHPWG_DEFAULT_TEMPLATE
- )
- )
- );
- $cache['default_user']['theme'] = PHPWG_DEFAULT_TEMPLATE;
- }
-
- if (empty($cache['default_user']['language']))
- {
- mass_updates(
- USER_INFOS_TABLE,
- array(
- 'primary' => array('user_id'),
- 'update' => array('language')
- ),
- array(
- array(
- 'user_id' => $conf['default_user_id'],
- 'language' => PHPWG_DEFAULT_LANGUAGE
- )
- )
- );
- $cache['default_user']['language'] = PHPWG_DEFAULT_LANGUAGE;
- }
}
}