r109716 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109715‎ | r109716 | r109717 >
Date:02:28, 22 January 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r109656 - renaming
Modified paths:
  • /trunk/extensions/EducationProgram/includes/EPCoursePager.php (modified) (history)
  • /trunk/extensions/EducationProgram/includes/EPMCPager.php (modified) (history)
  • /trunk/extensions/EducationProgram/specials/SpecialMasterCourse.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/specials/SpecialMasterCourse.php
@@ -76,7 +76,7 @@
7777 EPMC::displayPager( $this->getContext(), array( 'id' => $masterCourse->getId() ) );
7878
7979 if ( $this->getUser()->isAllowed( 'ep-mc' ) ) {
80 - $out->addHTML( Html::element( 'h2', array(), wfMsg( 'ep-mc-add-term' ) ) );
 80+ $out->addHTML( Html::element( 'h2', array(), wfMsg( 'ep-mc-add-course' ) ) );
8181
8282 EPMC::displayAddNewControl( $this->getContext(), array( 'mc' => $masterCourse->getId() ) );
8383 }
@@ -105,7 +105,7 @@
106106 htmlspecialchars( $org )
107107 );
108108
109 - $stats['status'] = wfMsgHtml( $masterCourse->getField( 'active' ) ? 'ep-course-active' : 'ep-course-inactive' );
 109+ $stats['status'] = wfMsgHtml( $masterCourse->getField( 'active' ) ? 'ep-mc-active' : 'ep-mc-inactive' );
110110
111111 $lang = $this->getLanguage();
112112
@@ -156,12 +156,12 @@
157157 }
158158 }
159159 else {
160 - $html = wfMsgHtml( 'ep-course-no-instructors' );
 160+ $html = wfMsgHtml( 'ep-mc-no-instructors' );
161161 }
162162
163163 return Html::rawElement(
164164 'div',
165 - array( 'id' => 'ep-course-instructors' ),
 165+ array( 'id' => 'ep-mc-instructors' ),
166166 $html
167167 );
168168 }
@@ -192,7 +192,7 @@
193193 'data-coursename' => $masterCourse->getField( 'name' ),
194194 'data-mode' => 'self',
195195 ),
196 - wfMsg( 'ep-course-become-instructor' )
 196+ wfMsg( 'ep-mc-become-instructor' )
197197 );
198198 }
199199
@@ -205,7 +205,7 @@
206206 'data-courseid' => $masterCourse->getId(),
207207 'data-coursename' => $masterCourse->getField( 'name' ),
208208 ),
209 - wfMsg( 'ep-course-add-instructor' )
 209+ wfMsg( 'ep-mc-add-instructor' )
210210 );
211211 }
212212
Index: trunk/extensions/EducationProgram/includes/EPMCPager.php
@@ -119,8 +119,8 @@
120120 'type' => 'select',
121121 'options' => array(
122122 '' => '',
123 - wfMsg( 'epcoursepager-yes' ) => '1',
124 - wfMsg( 'epcoursepager-no' ) => '0',
 123+ wfMsg( 'epmcpager-yes' ) => '1',
 124+ wfMsg( 'epmcpager-no' ) => '0',
125125 ),
126126 'value' => '',
127127 ),
Index: trunk/extensions/EducationProgram/includes/EPCoursePager.php
@@ -184,7 +184,7 @@
185185 wfMsgHtml( 'view' )
186186 );
187187
188 - if ( $this->getUser()->isAllowed( 'ep-term' ) ) {
 188+ if ( $this->getUser()->isAllowed( 'ep-course' ) ) {
189189 $links[] = $value = Linker::linkKnown(
190190 SpecialPage::getTitleFor( 'EditCourse', $item->getId() ),
191191 wfMsgHtml( 'edit' )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r109656schema changes currently completely breaking the extension and added hook to ...jeroendedauw22:24, 20 January 2012

Status & tagging log