Skip to content

Commit

Permalink
MDL-22646 create_context() is internal implementation function, to be…
Browse files Browse the repository at this point in the history
… used only inside accesslib.php
  • Loading branch information
skodak committed Jun 4, 2010
1 parent 67485c7 commit a076004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/accesslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1865,13 +1865,13 @@ function is_safe_capability($capability) {
**********************************/

/**
* Create a new context record for use by all roles-related stuff
* Context creation - internal implementation.
*
* Create a new context record for use by all roles-related stuff
* assumes that the caller has done the homework.
*
* @global object
* @global object
* DO NOT CALL THIS DIRECTLY, instead use {@link get_context_instance}!
*
* @param int $contextlevel
* @param int $instanceid
* @param int $strictness
Expand Down
2 changes: 1 addition & 1 deletion user/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function user_create_user($user) {
$newuserid = $DB->insert_record('user', $user);

/// create USER context for this user
create_context(CONTEXT_USER, $newuserid);
get_context_instance(CONTEXT_USER, $newuserid);

return $newuserid;

Expand Down

0 comments on commit a076004

Please sign in to comment.