https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113701
Revision: 113701
Author: jeroendedauw
Date: 2012-03-13 01:18:25 +0000 (Tue, 13 Mar 2012)
Log Message:
-----------
fix incorrect condition
Modified Paths:
--------------
trunk/extensions/EducationProgram/actions/ViewCourseAction.php
trunk/extensions/EducationProgram/specials/SpecialMyCourses.php
Modified: trunk/extensions/EducationProgram/actions/ViewCourseAction.php
===================================================================
--- trunk/extensions/EducationProgram/actions/ViewCourseAction.php
2012-03-13 01:04:59 UTC (rev 113700)
+++ trunk/extensions/EducationProgram/actions/ViewCourseAction.php
2012-03-13 01:18:25 UTC (rev 113701)
@@ -59,7 +59,7 @@
$pager = new EPArticleTable(
$this->getContext(),
- array( 'id' => $studentIds ),
+ array( 'user_id' => $studentIds ),
array( 'course_id' => $course->getId() )
);
Modified: trunk/extensions/EducationProgram/specials/SpecialMyCourses.php
===================================================================
--- trunk/extensions/EducationProgram/specials/SpecialMyCourses.php
2012-03-13 01:04:59 UTC (rev 113700)
+++ trunk/extensions/EducationProgram/specials/SpecialMyCourses.php
2012-03-13 01:18:25 UTC (rev 113701)
@@ -195,7 +195,7 @@
$pager = new EPArticleTable(
$this->getContext(),
- array( 'id' => $this->getUser()->getId() ),
+ array( 'user_id' => $this->getUser()->getId() ),
array( 'course_id' => $course->getId() )
);
@@ -233,7 +233,7 @@
$pager = new EPArticleTable(
$this->getContext(),
- array( 'id' => $this->getUser()->getId() ),
+ array( 'user_id' => $this->getUser()->getId() ),
array(
'course_id' => $course->getId(),
'user_id' => $this->getUser()->getId(),
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs