Permalink
Browse files

MDL-38474 repository: Undefined variable

  • Loading branch information...
1 parent ccc803d commit f75011fbadc9f1bff65dda1457a8571974752470 @FMCorz FMCorz committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
@@ -645,7 +645,7 @@ public static function get_types($visible=null) {
$currentcontext = $this->context;
// Ensure that the user can view the repository in the current context.
- $can = has_capability('repository/'.$this->type.':view', $this->currentcontext);
+ $can = has_capability('repository/'.$this->type.':view', $currentcontext);
// Context in which the repository has been created.
$repocontext = context::instance_by_id($this->instance->contextid);

0 comments on commit f75011f

Please sign in to comment.