Index: trunk/extensions/EducationProgram/specials/SpecialMyCourses.php |
— | — | @@ -44,10 +44,10 @@ |
45 | 45 | } |
46 | 46 | else { |
47 | 47 | if ( $this->subPage === '' ) { |
48 | | - $this->displayCourse( $student, $this->subPage ); |
| 48 | + $this->displayCourses( $student ); |
49 | 49 | } |
50 | 50 | else { |
51 | | - $this->displayCourses( $student ); |
| 51 | + $this->displayCourse( $student, $this->subPage ); |
52 | 52 | } |
53 | 53 | } |
54 | 54 | } |
— | — | @@ -57,10 +57,16 @@ |
58 | 58 | |
59 | 59 | if ( $student->hasTerm() ) { |
60 | 60 | if ( $this->getRequest()->getCheck( 'enrolled' ) ) { |
61 | | - $this->showSuccess( wfMessage( 'ep-mycourses-enrolled', '', '' ) ); // TODO |
| 61 | + $term = EPTerm::selectRow( null, array( 'id' => $this->getRequest()->getInt( 'enrolled' ) ) ); |
| 62 | + |
| 63 | + if ( $term !== false ) { |
| 64 | + $this->showSuccess( wfMessage( |
| 65 | + 'ep-mycourses-enrolled', |
| 66 | + $term->getCourse()->getField( 'name' ), |
| 67 | + $term->getOrg()->getField( 'name' ) |
| 68 | + ) ); // TODO |
| 69 | + } |
62 | 70 | } |
63 | | - |
64 | | - $this->displayCourses( $student ); |
65 | 71 | } |
66 | 72 | else { |
67 | 73 | $out->addWikiMsg( 'ep-mycourses-not-enrolled' ); |