mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
0c6faf4b51
commit
88661686aa
1 changed files with 4 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue