PMA_linkURL can be used from fatal errors early in execution, where library is not yet loaded

This commit is contained in:
Michal Čihař
2011-10-18 12:42:05 +02:00
parent 75d1dce908
commit 246b37937b

View File

@@ -695,6 +695,9 @@ function PMA_linkURL($url) {
if (!preg_match('#^https?://#', $url) || defined('PMA_SETUP')) {
return $url;
} else {
if (!function_exists('PMA_generate_common_url')) {
require_once('./libraries/url_generating.lib.php');
}
$params = array();
$params['url'] = $url;
return './url.php' . PMA_generate_common_url($params);