Index: trunk/extensions/EducationProgram/specials/SpecialCourses.php |
— | — | @@ -40,17 +40,11 @@ |
41 | 41 | |
42 | 42 | if ( $this->getUser()->isAllowed( 'ep-course' ) ) { |
43 | 43 | $this->getOutput()->addModules( 'ep.addcourse' ); |
44 | | - |
45 | | - $this->addCachedHTML( |
46 | | - function( IContextSource $context ) { |
47 | | - return |
48 | | - EPCourse::getAddNewRegion( $context ) . // FIXME |
49 | | - EPCourse::getPager( $context ); |
50 | | - }, |
51 | | - $this->getContext() |
52 | | - ); |
| 44 | + $this->addCachedHTML( 'EPCourse::getAddNewRegion', $this->getContext() ); |
53 | 45 | } |
54 | 46 | |
| 47 | + $this->addCachedHTML( 'EPCourse::getPager', $this->getContext() ); |
| 48 | + |
55 | 49 | $this->saveCache(); |
56 | 50 | } |
57 | 51 | else { |
Index: trunk/extensions/EducationProgram/includes/EPRevisionedObject.php |
— | — | @@ -402,8 +402,8 @@ |
403 | 403 | /** |
404 | 404 | * Set a field to the value of the corresponding field in the provided object. |
405 | 405 | * |
| 406 | + * |
406 | 407 | * @since 0.1 |
407 | | - * |
408 | 408 | * @param string $fieldName |
409 | 409 | * @param mixed $newValue |
410 | 410 | */ |