Permalink
Browse files

To help some 1.5 scripts around the place

  • Loading branch information...
1 parent 9132b70 commit fb3ec962935436067401d91cebdaab7f78ebed19 moodler committed May 7, 2005
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -565,6 +565,10 @@ function set_user_sesskey() {
return $USER->sesskey;
}
+function sesskey() { // Forward compatibiity with 1.5
+ return set_user_sesskey();
+}
+
function require_login($courseid=0, $autologinguest=true) {
/// This function checks that the current user is logged in, and optionally
/// whether they are "logged in" or allowed to be in a particular course.

0 comments on commit fb3ec96

Please sign in to comment.