From aa386d2929301a6ec4f9eb14cc60d8ab8a7a9fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Tue, 15 Apr 2014 15:46:19 +0800 Subject: [PATCH] MDL-45100 fix course_context classname PHPDdos typo in context API --- lib/accesslib.php | 6 +++--- lib/deprecatedlib.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index e9c663340a4..d869d742e1c 100644 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -5652,7 +5652,7 @@ abstract class context extends stdClass implements IteratorAggregate { * Is this context part of any course? If yes return course context. * * @param bool $strict true means throw exception if not found, false means return false if not found - * @return course_context context of the enclosing course, null if not found or exception + * @return context_course context of the enclosing course, null if not found or exception */ public function get_course_context($strict = true) { if ($strict) { @@ -6791,7 +6791,7 @@ class context_course extends context { * Is this context part of any course? If yes return course context. * * @param bool $strict true means throw exception if not found, false means return false if not found - * @return course_context context of the enclosing course, null if not found or exception + * @return context_course context of the enclosing course, null if not found or exception */ public function get_course_context($strict = true) { return $this; @@ -7257,7 +7257,7 @@ class context_block extends context { * Is this context part of any course? If yes return course context. * * @param bool $strict true means throw exception if not found, false means return false if not found - * @return course_context context of the enclosing course, null if not found or exception + * @return context_course context of the enclosing course, null if not found or exception */ public function get_course_context($strict = true) { $parentcontext = $this->get_parent_context(); diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index d4f54611f01..e4c9b942bce 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -4021,7 +4021,7 @@ function get_context_url(context $context) { * @deprecated since 2.2 * @see context::get_course_context() * @param context $context - * @return course_context context of the enclosing course, null if not found or exception + * @return context_course context of the enclosing course, null if not found or exception */ function get_course_context(context $context) { debugging('get_course_context() is deprecated, please use $context->get_course_context(true) instead.', DEBUG_DEVELOPER);