Index: trunk/extensions/TSPoll/TSPoll.php |
— | — | @@ -64,7 +64,12 @@ |
65 | 65 | return wfMsg( 'tspoll-id-error' ); |
66 | 66 | } |
67 | 67 | |
68 | | - $get_server = Http::get( 'http://toolserver.org/~jan/poll/dev/main.php?page=wiki_output&id=' . $id ); |
| 68 | + if ( isset( $args['dev'] ) && $args['dev'] != "1" ) { // If the arrgument dev is given, use the TSPoll-Dev-Version |
| 69 | + $get_server = Http::get( 'http://toolserver.org/~jan/poll/dev/main.php?page=wiki_output&id='.$id ); |
| 70 | + } else { // sonst die normale Version verwenden |
| 71 | + $get_server = Http::get( 'http://toolserver.org/~jan/poll/main.php?page=wiki_output&id='.$id ); |
| 72 | + } |
| 73 | + |
69 | 74 | if ( $get_server != '' ) { |
70 | 75 | return $get_server; |
71 | 76 | } |