Index: trunk/extensions/EducationProgram/includes/EPDBObject.php |
— | — | @@ -462,7 +462,7 @@ |
463 | 463 | $user = array_key_exists( 'user', $info ) ? $info['user'] : $GLOBALS['wgUser']; |
464 | 464 | |
465 | 465 | if ( $info !== false ) { |
466 | | - if ( false && class_exists( 'ManualLogEntry' ) ) { |
| 466 | + if ( class_exists( 'ManualLogEntry' ) ) { |
467 | 467 | $logEntry = new ManualLogEntry( $info['type'], $subType ); |
468 | 468 | |
469 | 469 | $logEntry->setPerformer( $user ); |
— | — | @@ -476,6 +476,7 @@ |
477 | 477 | $logEntry->publish( $logid ); |
478 | 478 | } |
479 | 479 | else { |
| 480 | + // Compatibility with MediaWiki 1.18. |
480 | 481 | $log = new LogPage( $info['type'] ); |
481 | 482 | |
482 | 483 | $log->addEntry( |
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -36,6 +36,9 @@ |
37 | 37 | 'log-name-institution' => 'Institution log', |
38 | 38 | 'log-name-course' => 'Course log', |
39 | 39 | 'log-name-term' => 'Term log', |
| 40 | + 'log-name-student' => 'Student log', |
| 41 | + 'log-name-ambassador' => 'Ambassador log', |
| 42 | + 'log-name-instructor' => 'Instructor log', |
40 | 43 | |
41 | 44 | 'log-header-institution' => 'These events track when changes are made to institutions.', |
42 | 45 | 'log-header-course' => 'These events track when changes are made to courses.', |
Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -160,6 +160,22 @@ |
161 | 161 | $wgLogActionsHandlers['ambassador/*'] = 'LogFormatter'; |
162 | 162 | $wgLogActionsHandlers['instructor/*'] = 'LogFormatter'; |
163 | 163 | |
| 164 | +// Compatibility with MediaWiki 1.18. |
| 165 | +$wgLogNames['institution'] = 'log-name-institution'; |
| 166 | +$wgLogNames['course'] = 'log-name-course'; |
| 167 | +$wgLogNames['term'] = 'log-name-term'; |
| 168 | +$wgLogNames['student'] = 'log-name-student'; |
| 169 | +$wgLogNames['ambassador'] = 'log-name-ambassador'; |
| 170 | +$wgLogNames['instructor'] = 'log-name-instructor'; |
| 171 | + |
| 172 | +// Compatibility with MediaWiki 1.18. |
| 173 | +$wgLogHeaders['institution'] = 'log-header-institution'; |
| 174 | +$wgLogHeaders['course'] = 'log-header-course'; |
| 175 | +$wgLogHeaders['term'] = 'log-header-term'; |
| 176 | +$wgLogHeaders['student'] = 'log-header-student'; |
| 177 | +$wgLogHeaders['ambassador'] = 'log-header-ambassador'; |
| 178 | +$wgLogHeaders['instructor'] = 'log-header-instructor'; |
| 179 | + |
164 | 180 | $wgAvailableRights[] = 'ep-org'; // Manage orgs |
165 | 181 | $wgAvailableRights[] = 'ep-course'; // Manage courses |
166 | 182 | $wgAvailableRights[] = 'ep-term'; // Manage terms |