This function needs to be in core.lib as it uses it

This commit is contained in:
Michal Čihař
2011-02-17 10:50:47 +01:00
parent aa0e0b94a8
commit 9ce8bb0e87
2 changed files with 16 additions and 16 deletions

View File

@@ -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
* *

View File

@@ -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.
* *