r108973 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108972‎ | r108973 | r108974 >
Date:13:26, 15 January 2012
Author:jeroendedauw
Status:ok
Tags:
Comment:
Follow up to r108969; more compat stuff
Modified paths:
  • /trunk/extensions/EducationProgram/EducationProgram.i18n.php (modified) (history)
  • /trunk/extensions/EducationProgram/EducationProgram.php (modified) (history)
  • /trunk/extensions/EducationProgram/includes/EPDBObject.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/includes/EPDBObject.php
@@ -462,7 +462,7 @@
463463 $user = array_key_exists( 'user', $info ) ? $info['user'] : $GLOBALS['wgUser'];
464464
465465 if ( $info !== false ) {
466 - if ( false && class_exists( 'ManualLogEntry' ) ) {
 466+ if ( class_exists( 'ManualLogEntry' ) ) {
467467 $logEntry = new ManualLogEntry( $info['type'], $subType );
468468
469469 $logEntry->setPerformer( $user );
@@ -476,6 +476,7 @@
477477 $logEntry->publish( $logid );
478478 }
479479 else {
 480+ // Compatibility with MediaWiki 1.18.
480481 $log = new LogPage( $info['type'] );
481482
482483 $log->addEntry(
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php
@@ -36,6 +36,9 @@
3737 'log-name-institution' => 'Institution log',
3838 'log-name-course' => 'Course log',
3939 'log-name-term' => 'Term log',
 40+ 'log-name-student' => 'Student log',
 41+ 'log-name-ambassador' => 'Ambassador log',
 42+ 'log-name-instructor' => 'Instructor log',
4043
4144 'log-header-institution' => 'These events track when changes are made to institutions.',
4245 'log-header-course' => 'These events track when changes are made to courses.',
Index: trunk/extensions/EducationProgram/EducationProgram.php
@@ -160,6 +160,22 @@
161161 $wgLogActionsHandlers['ambassador/*'] = 'LogFormatter';
162162 $wgLogActionsHandlers['instructor/*'] = 'LogFormatter';
163163
 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+
164180 $wgAvailableRights[] = 'ep-org'; // Manage orgs
165181 $wgAvailableRights[] = 'ep-course'; // Manage courses
166182 $wgAvailableRights[] = 'ep-term'; // Manage terms

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108969added 1.18 compat to logging stuffjeroendedauw12:29, 15 January 2012

Status & tagging log