From d6472de2bd82e79ba41f472960c58af7793feef2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 15 Apr 2008 17:33:17 +0000 Subject: [PATCH] Temporarily remove the username option. The index is missing on some wikis, and it seems a little funky to begin with. --- includes/SpecialNewpages.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 8b442954d0..b788685547 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -64,6 +64,9 @@ class NewPagesForm { $options[$v] = $wgRequest->getText( $v, $options[$v] ); } } + + // hack disable + $options['username'] = ''; $wgOut->setSyndicated( true ); $wgOut->setFeedAppendQuery( "namespace={$options['namespace']}&username={$options['username']}" ); @@ -113,6 +116,7 @@ class NewPagesForm { Xml::namespaceSelector( $options['namespace'], 'all' ) . " + " . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . @@ -304,9 +309,9 @@ class NewPagesPager extends ReverseChronologicalPager { $conds['rc_new'] = 1; if( $this->namespace !== false ) { $conds['rc_namespace'] = $this->namespace; - $rcIndexes = array( 'new_name_timestamp', 'rc_user_text' ); + $rcIndexes = array( 'new_name_timestamp' ); } else { - $rcIndexes = array( 'rc_timestamp', 'rc_user_text' ); + $rcIndexes = array( 'rc_timestamp' ); } $conds[] = 'page_id = rc_cur_id'; $conds['page_is_redirect'] = 0; -- 2.20.1