Index: trunk/extensions/BoardVote/GoToBoardVote_body.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | |
6 | 6 | class GoToBoardVotePage extends UnlistedSpecialPage { |
7 | 7 | function __construct() { |
8 | | - parent::__construct( "Go_to_board_vote" ); |
| 8 | + parent::__construct( "Boardvote" ); |
9 | 9 | } |
10 | 10 | |
11 | 11 | function execute( $par ) { |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | global $wgBoardVoteEditCount, $wgBoardVoteCountDate, $wgBoardVoteFirstEdit; |
14 | 14 | |
15 | 15 | 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( |
17 | 17 | 'title' => 'Special:Boardvote' . ( $par ? "/$par" : '' ), |
18 | 18 | 'sid' => session_id(), |
19 | 19 | 'db' => $wgDBname, |
Index: trunk/extensions/BoardVote/BoardVote.php |
— | — | @@ -36,11 +36,12 @@ |
37 | 37 | if ( !function_exists( 'extAddSpecialPage' ) ) { |
38 | 38 | require( dirname(__FILE__) . '/../ExtensionFunctions.php' ); |
39 | 39 | } |
40 | | -extAddSpecialPage( dirname(__FILE__) . '/GoToBoardVote_body.php', 'Go_to_board_vote', 'GoToBoardVotePage' ); |
41 | 40 | |
42 | 41 | if ( !defined( 'BOARDVOTE_REDIRECT_ONLY' ) ) { |
43 | 42 | extAddSpecialPage( dirname(__FILE__) . '/BoardVote_body.php', 'Boardvote', 'BoardVotePage' ); |
44 | 43 | $wgExtensionFunctions[] = 'wfSetupBoardVote'; |
| 44 | +} else { |
| 45 | + extAddSpecialPage( dirname(__FILE__) . '/GoToBoardVote_body.php', 'Boardvote', 'GoToBoardVotePage' ); |
45 | 46 | } |
46 | 47 | |
47 | 48 | function wfSetupBoardVote() { |