diff options
author | Michal Čihař <mcihar@novell.com> | 2011-05-20 12:02:48 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@novell.com> | 2011-05-20 12:02:48 +0400 |
commit | e22344168fa0c717538f78e4b4e5935dd78dc69d (patch) | |
tree | fb08199587c43148f1d4a67613b617e8d8044dcf /libraries | |
parent | 1a1e548a396756656852771b3066673837570004 (diff) | |
parent | b7a8179eb6bf0f1643970ac57a70b5b513a1cd4f (diff) |
Merge remote-tracking branch 'origin/MAINT_3_4_1' into QA_3_4
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/core.lib.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libraries/core.lib.php b/libraries/core.lib.php index 1152d6ab1c..1350247ae2 100644 --- a/libraries/core.lib.php +++ b/libraries/core.lib.php @@ -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); } } |