From aaa31653eee276541f693a42159c1ea40421dbfd Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 28 Apr 2010 10:45:05 +0000 Subject: feature 1502: migrate other template than yoga. git-svn-id: http://piwigo.org/svn/trunk@5981 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/84-database.php | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'install/db') diff --git a/install/db/84-database.php b/install/db/84-database.php index f407da330..f6f498b39 100644 --- a/install/db/84-database.php +++ b/install/db/84-database.php @@ -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 -- cgit v1.2.3