From 4b6cab69cc9172fa3c9207645aa2032499dc4d9c Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Sun, 9 Aug 2015 13:11:22 +0200 Subject: [PATCH] Set default values to variables on some templates. Signed-off-by: Hugues Peccatte --- templates/header_location.phtml | 11 +++++++++++ templates/logo.phtml | 31 ++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/templates/header_location.phtml b/templates/header_location.phtml index 4f41a06960..6e8246569d 100644 --- a/templates/header_location.phtml +++ b/templates/header_location.phtml @@ -1,3 +1,14 @@ + - - - diff --git a/templates/logo.phtml b/templates/logo.phtml index 60b60e88d7..f18db13b88 100644 --- a/templates/logo.phtml +++ b/templates/logo.phtml @@ -1,3 +1,32 @@ +'; + if (@file_exists($GLOBALS['pmaThemeImage'] . 'logo_left.png')) { + $logo = sprintf($imgTag, 'logo_left.png'); + } elseif (@file_exists($GLOBALS['pmaThemeImage'] . 'pma_logo2.png')) { + $logo = sprintf($imgTag, 'pma_logo2.png'); + } + } +} +?> @@ -5,7 +34,7 @@