https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114420
Revision: 114420
Author: jeroendedauw
Date: 2012-03-22 01:18:46 +0000 (Thu, 22 Mar 2012)
Log Message:
-----------
fix auth check issue
Modified Paths:
--------------
trunk/extensions/EducationProgram/includes/EPRevisionedObject.php
trunk/extensions/EducationProgram/specials/SpecialCourses.php
Modified: trunk/extensions/EducationProgram/includes/EPRevisionedObject.php
===================================================================
--- trunk/extensions/EducationProgram/includes/EPRevisionedObject.php
2012-03-22 00:56:23 UTC (rev 114419)
+++ trunk/extensions/EducationProgram/includes/EPRevisionedObject.php
2012-03-22 01:18:46 UTC (rev 114420)
@@ -402,8 +402,8 @@
/**
* Set a field to the value of the corresponding field in the provided
object.
*
+ *
* @since 0.1
- *
* @param string $fieldName
* @param mixed $newValue
*/
Modified: trunk/extensions/EducationProgram/specials/SpecialCourses.php
===================================================================
--- trunk/extensions/EducationProgram/specials/SpecialCourses.php
2012-03-22 00:56:23 UTC (rev 114419)
+++ trunk/extensions/EducationProgram/specials/SpecialCourses.php
2012-03-22 01:18:46 UTC (rev 114420)
@@ -40,17 +40,11 @@
if ( $this->getUser()->isAllowed( 'ep-course' ) ) {
$this->getOutput()->addModules( 'ep.addcourse'
);
-
- $this->addCachedHTML(
- function( IContextSource $context ) {
- return
-
EPCourse::getAddNewRegion( $context ) . // FIXME
- EPCourse::getPager(
$context );
- },
- $this->getContext()
- );
+ $this->addCachedHTML(
'EPCourse::getAddNewRegion', $this->getContext() );
}
+ $this->addCachedHTML( 'EPCourse::getPager',
$this->getContext() );
+
$this->saveCache();
}
else {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs