http://www.mediawiki.org/wiki/Special:Code/MediaWiki/83381
Revision: 83381 Author: tbleher Date: 2011-03-06 11:29:22 +0000 (Sun, 06 Mar 2011) Log Message: ----------- Fix bug where Commentbox was only displayed on purged pages, not on normal page view This is a workaround for the changed contents of $action since r78512. Before that change, $action was set to 'view' on normal page views. Now $action is empty if no action is given in the URL. Modified Paths: -------------- trunk/extensions/Commentbox/Commentbox.php Modified: trunk/extensions/Commentbox/Commentbox.php =================================================================== --- trunk/extensions/Commentbox/Commentbox.php 2011-03-06 11:29:17 UTC (rev 83380) +++ trunk/extensions/Commentbox/Commentbox.php 2011-03-06 11:29:22 UTC (rev 83381) @@ -48,7 +48,7 @@ if ( !array_key_exists( $title->getNamespace(), $wgCommentboxNamespaces ) || !$wgCommentboxNamespaces[ $title->getNamespace() ] ) return true; - if ( !( $action == 'view' || $action == 'purge' || $action == 'submit' ) ) + if ( !( $action == 'view' || $action == 'purge' || $action == 'submit' || $action == '' ) ) return true; if ( $wgRequest->getCheck( 'wpPreview' ) || $wgRequest->getCheck( 'wpLivePreview' ) _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs