r114420 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114419‎ | r114420 | r114421 >
Date:01:18, 22 March 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fix auth check issue
Modified paths:
  • /trunk/extensions/EducationProgram/includes/EPRevisionedObject.php (modified) (history)
  • /trunk/extensions/EducationProgram/specials/SpecialCourses.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/specials/SpecialCourses.php
@@ -40,17 +40,11 @@
4141
4242 if ( $this->getUser()->isAllowed( 'ep-course' ) ) {
4343 $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() );
5345 }
5446
 47+ $this->addCachedHTML( 'EPCourse::getPager', $this->getContext() );
 48+
5549 $this->saveCache();
5650 }
5751 else {
Index: trunk/extensions/EducationProgram/includes/EPRevisionedObject.php
@@ -402,8 +402,8 @@
403403 /**
404404 * Set a field to the value of the corresponding field in the provided object.
405405 *
 406+ *
406407 * @since 0.1
407 - *
408408 * @param string $fieldName
409409 * @param mixed $newValue
410410 */

Status & tagging log