r111115 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111114‎ | r111115 | r111116 >
Date:22:33, 9 February 2012
Author:werdna
Status:ok
Tags:
Comment:
Require that the user is in the correct bucket for redlink behaviour, kill debugging code
Modified paths:
  • /trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.hooks.php (modified) (history)
  • /trunk/extensions/ArticleCreationWorkflow/includes/ArticleCreationUtil.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleCreationWorkflow/includes/ArticleCreationUtil.php
@@ -12,7 +12,6 @@
1313 * @return bool whether or not it is.
1414 */
1515 public static function isEnabled() {
16 - return true;
1716 global $wgUser, $wgArticleCreationRegistrationCutoff;
1817
1918 $userRegistration = wfTimestamp( TS_MW, $wgUser->getRegistration() );
Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.hooks.php
@@ -31,6 +31,10 @@
3232 public static function AlternateEdit( $editPage ) {
3333 global $wgRequest, $wgOut;
3434
 35+ if ( ! ArticleCreationUtil::isEnabled() ) {
 36+ return true;
 37+ }
 38+
3539 $title = $editPage->mArticle->getTitle();
3640
3741 if ( $wgRequest->getBool( 'redlink' ) ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111114Reimplement bucketing using the new PHPBucket interface. Sadly, it works better.werdna22:32, 9 February 2012

Status & tagging log