Index: trunk/extensions/EducationProgram/includes/EPCourse.php |
— | — | @@ -190,7 +190,7 @@ |
191 | 191 | $options = array(); |
192 | 192 | |
193 | 193 | foreach ( $courses as /* EPCourse */ $course ) { |
194 | | - $options[$course->getField( 'name' )] = (string)$course->getId(); |
| 194 | + $options[$course->getField( 'name' )] = $course->getId(); |
195 | 195 | } |
196 | 196 | |
197 | 197 | return $options; |
— | — | @@ -279,9 +279,9 @@ |
280 | 280 | $select = new XmlSelect( |
281 | 281 | 'neworg', |
282 | 282 | 'neworg', |
283 | | - array_key_exists( 'org', $args ) ? (string)$args['org'] : false |
| 283 | + array_key_exists( 'org', $args ) ? $args['org'] : false |
284 | 284 | ); |
285 | | - |
| 285 | + |
286 | 286 | $select->addOptions( EPOrg::getOrgOptions( EPOrg::getEditableOrgs( $context->getUser() ) ) ); |
287 | 287 | $out->addHTML( $select->getHTML() ); |
288 | 288 | |
Index: trunk/extensions/EducationProgram/includes/EPOrg.php |
— | — | @@ -167,7 +167,7 @@ |
168 | 168 | $options = array(); |
169 | 169 | |
170 | 170 | foreach ( $orgs as /* EPOrg */ $org ) { |
171 | | - $options[$org->getField( 'name' )] = (string)$org->getId(); |
| 171 | + $options[$org->getField( 'name' )] = $org->getId(); |
172 | 172 | } |
173 | 173 | |
174 | 174 | return $options; |
Index: trunk/extensions/EducationProgram/specials/SpecialCourse.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | if ( $course->useCanManage( $this->getUser() ) ) { |
78 | 78 | $out->addHTML( Html::element( 'h2', array(), wfMsg( 'ep-course-add-term' ) ) ); |
79 | 79 | |
80 | | - EPCourse::displayAddNewControl( $this->getContext(), array( 'course' => $course->getId() ) ); |
| 80 | + EPTerm::displayAddNewControl( $this->getContext(), array( 'course' => $course->getId() ) ); |
81 | 81 | } |
82 | 82 | } |
83 | 83 | } |