Jeroen De Dauw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60376


Change subject: Fix how student id is passed to ArticleTable
......................................................................

Fix how student id is passed to ArticleTable

bug 47517

Change-Id: Id72faa91f88e2359d44129b07a32e3063b49a075
---
M includes/specials/SpecialManageCourses.php
M includes/specials/SpecialStudent.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EducationProgram 
refs/changes/76/60376/1

diff --git a/includes/specials/SpecialManageCourses.php 
b/includes/specials/SpecialManageCourses.php
index 6fbefb6..1023b89 100644
--- a/includes/specials/SpecialManageCourses.php
+++ b/includes/specials/SpecialManageCourses.php
@@ -238,7 +238,7 @@
                        $this->getContext(),
                        array( 'user_id' => $this->getUser()->getId() ),
                        $course->getId(),
-                       $this->getUser()->getId()
+                       array( $this->getUser()->getId() )
                );
 
                $this->getOutput()->addModules( ArticleTable::getModules() );
diff --git a/includes/specials/SpecialStudent.php 
b/includes/specials/SpecialStudent.php
index 7c15f8b..40c8a8c 100644
--- a/includes/specials/SpecialStudent.php
+++ b/includes/specials/SpecialStudent.php
@@ -97,7 +97,7 @@
                                $this->getContext(),
                                array( 'user_id' => $this->getUser()->getId() ),
                                $courseIds,
-                               $this->getUser()->getId()
+                               array( $this->getUser()->getId() )
                        );
 
                        $this->getOutput()->addModules( 
ArticleTable::getModules() );

-- 
To view, visit https://gerrit.wikimedia.org/r/60376
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id72faa91f88e2359d44129b07a32e3063b49a075
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EducationProgram
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to