mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
feature 1502: migrate other template than yoga.
git-svn-id: http://piwigo.org/svn/trunk@5981 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -47,10 +47,31 @@ while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
list($user_template, $user_theme) = explode('/', $row['theme']);
|
||||
|
||||
if ($user_template != 'yoga')
|
||||
switch ($user_template)
|
||||
{
|
||||
$user_theme = 'Sylvia'; // We can find better!
|
||||
case 'yoga':
|
||||
break;
|
||||
|
||||
case 'gally':
|
||||
$user_theme = 'gally-'.$user_theme;
|
||||
break;
|
||||
|
||||
case 'floPure':
|
||||
$user_theme = 'Pure_'.$user_theme;
|
||||
break;
|
||||
|
||||
case 'floOs':
|
||||
$user_theme = 'OS_'.$user_theme;
|
||||
break;
|
||||
|
||||
case 'simple':
|
||||
$user_theme = 'simple-'.$user_theme;
|
||||
break;
|
||||
|
||||
default:
|
||||
$user_theme = 'Sylvia';
|
||||
}
|
||||
|
||||
array_push($users, array(
|
||||
'user_id' => $row['user_id'],
|
||||
'theme' => $user_theme
|
||||
|
||||
Reference in New Issue
Block a user