PMA_getPHPDocLink can be used from fatal errors early in execution, where gettext is not yet loaded
This commit is contained in:
@@ -260,8 +260,13 @@ function PMA_fatalError($error_message, $message_args = null)
|
|||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function PMA_getPHPDocLink($target) {
|
function PMA_getPHPDocLink($target) {
|
||||||
/* l10n: Language to use for PHP documentation, please use only languages which do exist in official documentation. */
|
/* Gettext does not have to be loaded yet */
|
||||||
$lang = _pgettext('PHP documentation language', 'en');
|
if (function_exists('_pgettext')) {
|
||||||
|
/* l10n: Language to use for PHP documentation, please use only languages which do exist in official documentation. */
|
||||||
|
$lang = _pgettext('PHP documentation language', 'en');
|
||||||
|
} else {
|
||||||
|
$lang = 'en';
|
||||||
|
}
|
||||||
|
|
||||||
return PMA_linkURL('http://php.net/manual/' . $lang . '/' . $target);
|
return PMA_linkURL('http://php.net/manual/' . $lang . '/' . $target);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user