http://www.mediawiki.org/wiki/Special:Code/MediaWiki/75689
Revision: 75689 Author: reedy Date: 2010-10-29 22:42:07 +0000 (Fri, 29 Oct 2010) Log Message: ----------- Mark a couple of methods static Change a couple of static calls to non static functions to $this-> Modified Paths: -------------- trunk/extensions/Collection/Collection.suggest.php trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php Modified: trunk/extensions/Collection/Collection.suggest.php =================================================================== --- trunk/extensions/Collection/Collection.suggest.php 2010-10-29 22:38:26 UTC (rev 75688) +++ trunk/extensions/Collection/Collection.suggest.php 2010-10-29 22:42:07 UTC (rev 75689) @@ -51,7 +51,7 @@ * or a number of articles to add or a value (1 - 1.5) all articles with a * higher value will be added to the collection */ - public function run( $mode = '', $param = '' ) { + public static function run( $mode = '', $param = '' ) { global $wgOut; if ( !CollectionSession::hasSession() ) { Modified: trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php =================================================================== --- trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php 2010-10-29 22:38:26 UTC (rev 75688) +++ trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php 2010-10-29 22:42:07 UTC (rev 75689) @@ -547,7 +547,7 @@ */ public function getFilePath( $tag, $ext='' ) { global $wgUploadDirectory; - $rel = self::getRelPath( $tag, $ext ); + $rel = $this->getRelPath( $tag, $ext ); return "{$wgUploadDirectory}/graphs/{$rel}"; } @@ -559,7 +559,7 @@ */ public function getUrlPath( $tag, $ext='' ) { global $wgUploadPath; - $rel = self::getRelPath( $tag, $ext ); + $rel = $this->getRelPath( $tag, $ext ); return "{$wgUploadPath}/graphs/{$rel}"; } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs