This function needs to be in core.lib as it uses it
This commit is contained in:
@@ -447,22 +447,6 @@ function PMA_showDocu($anchor) {
|
|||||||
}
|
}
|
||||||
} // end of the 'PMA_showDocu()' function
|
} // end of the 'PMA_showDocu()' function
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a link to the PHP documentation
|
|
||||||
*
|
|
||||||
* @param string anchor in documentation
|
|
||||||
*
|
|
||||||
* @return string the URL
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
function PMA_getPHPDocLink($target) {
|
|
||||||
/* l10n: Language to use for PHP documentation, please use only languages which do exist in official documentation. */
|
|
||||||
$lang = _pgettext('PHP documentation language', 'en');
|
|
||||||
|
|
||||||
return 'http://php.net/manual/' . $lang . '/' . $target;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays a link to the PHP documentation
|
* Displays a link to the PHP documentation
|
||||||
*
|
*
|
||||||
|
@@ -250,6 +250,22 @@ function PMA_fatalError($error_message, $message_args = null)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a link to the PHP documentation
|
||||||
|
*
|
||||||
|
* @param string anchor in documentation
|
||||||
|
*
|
||||||
|
* @return string the URL
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function PMA_getPHPDocLink($target) {
|
||||||
|
/* l10n: Language to use for PHP documentation, please use only languages which do exist in official documentation. */
|
||||||
|
$lang = _pgettext('PHP documentation language', 'en');
|
||||||
|
|
||||||
|
return 'http://php.net/manual/' . $lang . '/' . $target;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Warn or fail on missing extension.
|
* Warn or fail on missing extension.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user