r23498 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23497‎ | r23498 | r23499 >
Date:22:15, 27 June 2007
Author:tstarling
Status:old
Tags:
Comment:
renamed redirector
Modified paths:
  • /trunk/extensions/BoardVote/BoardVote.php (modified) (history)
  • /trunk/extensions/BoardVote/GoToBoardVote_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BoardVote/GoToBoardVote_body.php
@@ -4,7 +4,7 @@
55
66 class GoToBoardVotePage extends UnlistedSpecialPage {
77 function __construct() {
8 - parent::__construct( "Go_to_board_vote" );
 8+ parent::__construct( "Boardvote" );
99 }
1010
1111 function execute( $par ) {
@@ -12,7 +12,7 @@
1313 global $wgBoardVoteEditCount, $wgBoardVoteCountDate, $wgBoardVoteFirstEdit;
1414
1515 if ( $wgUser->isLoggedIn() ) {
16 - $url = 'https://secure.wikimedia.org/wikipedia/test/w/index.php?' . wfArrayToCGI( array(
 16+ $url = 'http://wikimedia.spi-inc.org/index.php?' . wfArrayToCGI( array(
1717 'title' => 'Special:Boardvote' . ( $par ? "/$par" : '' ),
1818 'sid' => session_id(),
1919 'db' => $wgDBname,
Index: trunk/extensions/BoardVote/BoardVote.php
@@ -36,11 +36,12 @@
3737 if ( !function_exists( 'extAddSpecialPage' ) ) {
3838 require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
3939 }
40 -extAddSpecialPage( dirname(__FILE__) . '/GoToBoardVote_body.php', 'Go_to_board_vote', 'GoToBoardVotePage' );
4140
4241 if ( !defined( 'BOARDVOTE_REDIRECT_ONLY' ) ) {
4342 extAddSpecialPage( dirname(__FILE__) . '/BoardVote_body.php', 'Boardvote', 'BoardVotePage' );
4443 $wgExtensionFunctions[] = 'wfSetupBoardVote';
 44+} else {
 45+ extAddSpecialPage( dirname(__FILE__) . '/GoToBoardVote_body.php', 'Boardvote', 'GoToBoardVotePage' );
4546 }
4647
4748 function wfSetupBoardVote() {

Status & tagging log