From 5a906af8a08a4ec327f4a2305679181fa9cd8231 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Thu, 27 Feb 2014 09:13:13 +0800 Subject: [PATCH 1/2] Fix top menu borders. Signed-off-by: Edward Cheng --- themes/pmahomme/css/common.css.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/pmahomme/css/common.css.php b/themes/pmahomme/css/common.css.php index 90c4f7571c..d87ebbe396 100644 --- a/themes/pmahomme/css/common.css.php +++ b/themes/pmahomme/css/common.css.php @@ -924,7 +924,6 @@ ul#topmenu2 li { .menucontainer { getCssGradient('ffffff', 'dcdcdc'); ?> border-top: 1px solid #aaa; - border-bottom: 1px solid #ccc; } /* default tab styles */ @@ -972,6 +971,11 @@ ul#topmenu ul.only { ul#topmenu > li { border-right: 1px solid #fff; border-left: 1px solid #ccc; + border-bottom: 1px solid #ccc; +} + +ul#topmenu > li:first-child { + border-left: 0; } /* default tab styles */ @@ -1020,6 +1024,7 @@ ul#topmenu2 a.tabactive { ul#topmenu > li.active { /* border-bottom: 0pt solid ; */ border-right: 0; + border-bottom-color: #fff; } /* end topmenu */ From 0e2b847f4e2ada2f2c8dede2984c4d889b47b77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 27 Feb 2014 09:11:31 +0100 Subject: [PATCH 2/2] Honor URL separator in get_scripts parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/Scripts.class.php | 10 +++++++--- test/classes/PMA_Scripts_test.php | 5 +++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libraries/Scripts.class.php b/libraries/Scripts.class.php index 957ffedf9c..2878207271 100644 --- a/libraries/Scripts.class.php +++ b/libraries/Scripts.class.php @@ -73,10 +73,14 @@ class PMA_Scripts $scripts[] = "scripts[]=" . $value['filename']; } } + $separator = PMA_URL_getArgSeparator(); + $url = 'js/get_scripts.js.php' + . PMA_URL_getCommon(array(), 'none') + . $separator . implode($separator, $scripts); + $static_scripts = sprintf( - '', - PMA_URL_getCommon(array(), 'none'), implode("&", $scripts) + '', + htmlspecialchars($url) ); return $static_scripts . $dynamic_scripts; } diff --git a/test/classes/PMA_Scripts_test.php b/test/classes/PMA_Scripts_test.php index d59b8a83a1..b5295ac633 100644 --- a/test/classes/PMA_Scripts_test.php +++ b/test/classes/PMA_Scripts_test.php @@ -11,6 +11,7 @@ require_once 'libraries/Scripts.class.php'; require_once 'libraries/js_escape.lib.php'; +require_once 'libraries/url_generating.lib.php'; /** * Tests for Script.class.php @@ -78,7 +79,7 @@ class PMA_Scripts_Test extends PHPUnit_Framework_TestCase { $this->assertEquals( '', + . '&token=token&scripts[]=common.js">', $this->_callPrivateFunction( '_includeFiles', array( @@ -107,7 +108,7 @@ class PMA_Scripts_Test extends PHPUnit_Framework_TestCase $this->assertRegExp( '@