From: David Mudrak Date: Mon, 4 Jan 2010 17:54:23 +0000 (+0000) Subject: Fixing regression X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c46e7533054f96b3d79df29f4d21d00abe050ee3;p=moodle.git Fixing regression Raw database records and $USER are stdClasses (grrr I wonder why we ever started with this object class) --- diff --git a/mod/workshop/renderer.php b/mod/workshop/renderer.php index 64bdc3196b..3f9b3d2d22 100644 --- a/mod/workshop/renderer.php +++ b/mod/workshop/renderer.php @@ -116,12 +116,12 @@ class moodle_mod_workshop_renderer extends moodle_renderer_base { * * By default, this looks similar to a forum post. * - * @param object $submission The submission record + * @param stdClass $submission The submission record * @param bool $showauthorname Should the author name be displayed - * @param object $author If author's name should be displayed, this object contains the author data + * @param stdClass $author If author's name should be displayed, this object contains the author data * @return string html to be echoed */ - public function submission_full(object $submission, $showauthorname=false, object $author=null) { + public function submission_full(stdClass $submission, $showauthorname=false, stdClass $author=null) { global $CFG; $o = ''; // output code @@ -176,11 +176,11 @@ class moodle_mod_workshop_renderer extends moodle_renderer_base { * If format==html, then format a html string. If format==text, then format a text-only string. * Otherwise, returns html for non-images and html to display the image inline. * - * @param object $submission Submission record + * @param stdClass $submission Submission record * @param string format The format of the returned string * @return string HTML code to be echoed */ - public function submission_attachments(object $submission, $format=null) { + public function submission_attachments(stdClass $submission, $format=null) { global $CFG; require_once($CFG->libdir.'/filelib.php');