PMA_linkURL can be used from fatal errors early in execution, where library is not yet loaded
This commit is contained in:
@@ -695,6 +695,9 @@ function PMA_linkURL($url) {
|
|||||||
if (!preg_match('#^https?://#', $url) || defined('PMA_SETUP')) {
|
if (!preg_match('#^https?://#', $url) || defined('PMA_SETUP')) {
|
||||||
return $url;
|
return $url;
|
||||||
} else {
|
} else {
|
||||||
|
if (!function_exists('PMA_generate_common_url')) {
|
||||||
|
require_once('./libraries/url_generating.lib.php');
|
||||||
|
}
|
||||||
$params = array();
|
$params = array();
|
||||||
$params['url'] = $url;
|
$params['url'] = $url;
|
||||||
return './url.php' . PMA_generate_common_url($params);
|
return './url.php' . PMA_generate_common_url($params);
|
||||||
|
Reference in New Issue
Block a user