Skip to content

Commit

Permalink
removed deprecated flag from addslashes_js() MDL-8582 and some more b…
Browse files Browse the repository at this point in the history
…ackporting from HEAD
  • Loading branch information
skodak committed Feb 23, 2007
1 parent 7d72800 commit 3364157
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/weblib.php
Expand Up @@ -149,7 +149,6 @@ function p($var, $strip=false) {
* Does proper javascript quoting.
* Do not use addslashes anymore, because it does not work when magic_quotes_sybase is enabled.
*
* @deprecated
* @since 1.8 - 22/02/2007
* @param mixed value
* @return mixed quoted result
Expand Down Expand Up @@ -1959,8 +1958,8 @@ function highlightfast($needle, $haystack) {
}

/**
* Return a string containing lang, xml:lang and optionally 'dir' HTML attributes.
* Internationalisation, for print_header and backup/restorlib.
* Return a string containing 'lang', xml:lang and optionally 'dir' HTML attributes.
* Internationalisation, for print_header and backup/restorelib.
* @param $dir Default false.
* @return string Attributes.
*/
Expand Down Expand Up @@ -3823,7 +3822,9 @@ function update_course_icon($courseid) {
global $CFG, $USER;

$coursecontext = get_context_instance(CONTEXT_COURSE, $courseid);


$capcheck = false;

if (has_capability('moodle/course:manageactivities', $coursecontext) ||
has_capability('moodle/site:manageblocks', $coursecontext)) {
$capcheck = true;
Expand Down Expand Up @@ -5700,4 +5701,4 @@ function frametarget() {
}

// vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
?>
?>

0 comments on commit 3364157

Please sign in to comment.