aboutsummaryrefslogtreecommitdiffstats
path: root/install/db/84-database.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-04-28 10:45:05 +0000
committerpatdenice <patdenice@piwigo.org>2010-04-28 10:45:05 +0000
commitaaa31653eee276541f693a42159c1ea40421dbfd (patch)
treec6d8e8032291e76678bda4eea6287837bad4aad8 /install/db/84-database.php
parent48cf944cf398a2cf3c5e0c48de6af1c675a05038 (diff)
feature 1502: migrate other template than yoga.
git-svn-id: http://piwigo.org/svn/trunk@5981 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install/db/84-database.php')
-rw-r--r--install/db/84-database.php25
1 files changed, 23 insertions, 2 deletions
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