MDL-40723 use guess_if_creator_will_have_course_capability() for the new weird function

This commit is contained in:
Petr Škoda 2013-07-23 15:55:07 +02:00
parent dba745265f
commit 54d5308ef0
4 changed files with 28 additions and 28 deletions

View file

@ -560,7 +560,7 @@ function has_all_capabilities(array $capabilities, context $context, $user = nul
*
* @throws coding_exception if different type of course submitted
*/
function will_have_course_capability($capability, context $context, $user = null) {
function guess_if_creator_will_have_course_capability($capability, context $context, $user = null) {
global $CFG;
if ($context->contextlevel != CONTEXT_COURSE and $context->contextlevel != CONTEXT_COURSECAT) {