@@ -28,4 +28,4 @@ |
||
| 28 | 28 | $plugin->requires = 2014111000; |
| 29 | 29 | $plugin->component = 'availability_maxviews'; |
| 30 | 30 | $plugin->release = 2; |
| 31 | -$plugin->maturity = MATURITY_RC; |
|
| 31 | +$plugin->maturity = MATURITY_RC; |
|
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $reader = array_pop($readers); |
| 95 | 95 | $context = $info->get_context(); |
| 96 | 96 | $viewscount = $reader->get_events_select_count('contextid = :context AND userid = :userid AND crud = :crud', |
| 97 | - array('context' => $context->id, 'userid' => $userid, 'crud' => 'r')); |
|
| 97 | + array('context' => $context->id, 'userid' => $userid, 'crud' => 'r')); |
|
| 98 | 98 | $allow = ($viewscount < $this->viewslimit); |
| 99 | 99 | if ($not) { |
| 100 | 100 | $allow = !$allow; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $reader = array_pop($readers); |
| 124 | 124 | $context = $info->get_context(); |
| 125 | 125 | $viewscount = $reader->get_events_select_count('contextid = :context AND userid = :userid AND crud = :crud', |
| 126 | - array('context' => $context->id, 'userid' => $USER->id, 'crud' => 'r')); |
|
| 126 | + array('context' => $context->id, 'userid' => $USER->id, 'crud' => 'r')); |
|
| 127 | 127 | |
| 128 | 128 | $a = new \stdclass(); |
| 129 | 129 | $a->viewslimit = $this->viewslimit; |