From 5d5062c26203234962961a6b3267fe0c5b67b538 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 29 Dec 2014 21:42:28 +0100 Subject: [PATCH] make ownership-hint a bit larger like the db-error-page; add theme-fallback to database-error-function to avoid this stupid 'we are sorry, but a MySQL - error occurred'-message Signed-off-by: Michael Kaufmann (d00p) --- lib/classes/database/class.Database.php | 3 +++ templates/Sparkle/misc/ownershiphint.tpl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/classes/database/class.Database.php b/lib/classes/database/class.Database.php index 474c8474..bb43b65b 100644 --- a/lib/classes/database/class.Database.php +++ b/lib/classes/database/class.Database.php @@ -332,6 +332,9 @@ class Database { // include userdata.inc.php require FROXLOR_INSTALL_DIR."/lib/userdata.inc.php"; + // fallback + $theme = 'Sparkle'; + // le format if (isset($sql['root_user']) && isset($sql['root_password']) diff --git a/templates/Sparkle/misc/ownershiphint.tpl b/templates/Sparkle/misc/ownershiphint.tpl index 675c95c0..ec510e87 100644 --- a/templates/Sparkle/misc/ownershiphint.tpl +++ b/templates/Sparkle/misc/ownershiphint.tpl @@ -12,12 +12,12 @@
-