r112455 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112454‎ | r112455 | r112456 >
Date:23:12, 26 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r112450;
Modified paths:
  • /trunk/extensions/EducationProgram/actions/ViewCourseAction.php (modified) (history)
  • /trunk/extensions/EducationProgram/includes/EPCoursePager.php (modified) (history)
  • /trunk/extensions/EducationProgram/includes/EPOrgPager.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/actions/ViewCourseAction.php
@@ -83,7 +83,7 @@
8484 $stats = array();
8585
8686 $orgName = EPOrgs::singleton()->selectFieldsRow( 'name', array( 'id' => $course->getField( 'org_id' ) ) );
87 - $stats['org'] = OrgPage::getLinkFor( $orgName );
 87+ $stats['org'] = EPOrgs::singleton()->getLinkFor( $orgName );
8888
8989 $lang = $this->getLanguage();
9090
Index: trunk/extensions/EducationProgram/includes/EPOrgPager.php
@@ -62,7 +62,7 @@
6363 public function getFormattedValue( $name, $value ) {
6464 switch ( $name ) {
6565 case 'name':
66 - $value = OrgPage::getLinkFor( $value );
 66+ $value = EPOrgs::singleton()->getLinkFor( $value );
6767 break;
6868 case 'country':
6969 $countries = array_flip( EPUtils::getCountryOptions( $this->getLanguage()->getCode() ) );
Index: trunk/extensions/EducationProgram/includes/EPCoursePager.php
@@ -72,7 +72,7 @@
7373 public function getFormattedValue( $name, $value ) {
7474 switch ( $name ) {
7575 case 'name':
76 - $value = CoursePage::getLinkFor( $value );
 76+ $value = EPCourses::singleton()->getLinkFor( $value );
7777 break;
7878 case 'org_id':
7979 $org = EPOrgs::singleton()->selectRow( 'name', array( 'id' => $value ) );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r112450some refactoringjeroendedauw22:25, 26 February 2012

Status & tagging log