Merge remote-tracking branch 'origin/MAINT_3_4_1' into QA_3_4

This commit is contained in:
Michal Čihař
2011-05-20 10:02:48 +02:00

View File

@@ -681,15 +681,12 @@ function PMA_array_remove($path, &$array)
* @return string URL for a link.
*/
function PMA_linkURL($url) {
$params = array();
$params['url'] = $url;
$goto = 'url.php' . PMA_generate_common_url($params);
if (!preg_match('#^https?://#', $url)) {
if (!preg_match('#^https?://#', $url) || defined('PMA_SETUP')) {
return $url;
} elseif (defined('PMA_SETUP')) {
return '../' . $goto;
} else {
return './' . $goto;
$params = array();
$params['url'] = $url;
return './url.php' . PMA_generate_common_url($params);
}
}