MDL-50250 core_lib: Remove obsolete param from p() method.

Obsolete param $obsolete is not used anywhere and can be removed.
Also small fix in wording in related documentation.
This commit is contained in:
Tomasz Muras 2015-05-21 19:12:40 +02:00 committed by Simey Lameze
parent 0c6faf4b51
commit 88661686aa

View file

@ -85,7 +85,7 @@ define('URL_MATCH_EXACT', 2);
* Add quotes to HTML characters.
*
* Returns $var with HTML characters (like "<", ">", etc.) properly quoted.
* This function is very similar to {@link p()}
* Related function {@link p()} simply prints the output of this function.
*
* @param string $var the string potentially containing HTML characters
* @return string
@ -106,17 +106,14 @@ function s($var) {
* Add quotes to HTML characters.
*
* Prints $var with HTML characters (like "<", ">", etc.) properly quoted.
* This function simply calls {@link s()}
* This function simply calls & displays {@link s()}.
* @see s()
*
* @todo Remove obsolete param $obsolete if not used anywhere
*
* @param string $var the string potentially containing HTML characters
* @param boolean $obsolete no longer used.
* @return string
*/
function p($var, $obsolete = false) {
echo s($var, $obsolete);
function p($var) {
echo s($var);
}
/**