Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-12514 - Added missing js library (thanks Johannes Albert) and fix…

…ed missing string escaping.
  • Loading branch information...
commit 541b11c43404158318aa69ea2e5b397b153eef1e 1 parent 45d3c87
scyrma authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/wiki/view.php
View
4 mod/wiki/view.php
@@ -8,7 +8,7 @@
require_once("lib.php");
#require_once("$CFG->dirroot/course/lib.php"); // For side-blocks
require_once($CFG->libdir . '/ajax/ajaxlib.php');
- require_js(array('yui_yahoo','yui_connection'));
+ require_js(array('yui_yahoo', 'yui_event', 'yui_connection'));
$ewiki_action = optional_param('ewiki_action', '', PARAM_ALPHA); // Action on Wiki-Page
$id = optional_param('id', 0, PARAM_INT); // Course Module ID, or
@@ -451,7 +451,7 @@
} else {
if (ajaxenabled()) {
// OK, the page is now locked to us. Put in the AJAX for keeping the lock
- $strlockcancelled=get_string('lockcancelled','wiki');
+ $strlockcancelled=addslashes(get_string('lockcancelled','wiki'));
$strnojslockwarning=get_string('nojslockwarning','wiki');
$intervalms=WIKI_LOCK_RECONFIRM*1000;
print "
Please sign in to comment.
Something went wrong with that request. Please try again.