mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Issue 578
User guest must be real user Step 2: Installation finished, guest must be used on list and group, corrections git-svn-id: http://piwigo.org/svn/trunk@1930 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
16
install.php
16
install.php
@@ -312,13 +312,6 @@ define(\'PHPWG_INSTALLED\', true);
|
||||
$table_prefix
|
||||
);
|
||||
|
||||
$query = '
|
||||
UPDATE '.CONFIG_TABLE.'
|
||||
SET value = \''.$language.'\'
|
||||
WHERE param = \'default_language\'
|
||||
;';
|
||||
mysql_query($query);
|
||||
|
||||
// fill $conf global array
|
||||
load_conf_from_db();
|
||||
|
||||
@@ -343,14 +336,7 @@ UPDATE '.CONFIG_TABLE.'
|
||||
);
|
||||
mass_inserts(USERS_TABLE, array_keys($inserts[0]), $inserts);
|
||||
|
||||
create_user_infos(1);
|
||||
create_user_infos(2);
|
||||
|
||||
$query = '
|
||||
UPDATE '.USER_INFOS_TABLE.'
|
||||
SET language = \''.$language.'\'
|
||||
;';
|
||||
mysql_query($query);
|
||||
create_user_infos(array(1,2), array('language' => $language));
|
||||
|
||||
// Available upgrades must be ignored after a fresh installation. To
|
||||
// make PWG avoid upgrading, we must tell it upgrades have already been
|
||||
|
||||
Reference in New Issue
Block a user