r50189 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50188‎ | r50189 | r50190 >
Date:18:01, 4 May 2009
Author:jan
Status:deferred
Tags:
Comment:
Add the arrgument dev
Modified paths:
  • /trunk/extensions/TSPoll/TSPoll.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TSPoll/TSPoll.php
@@ -64,7 +64,12 @@
6565 return wfMsg( 'tspoll-id-error' );
6666 }
6767
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+
6974 if ( $get_server != '' ) {
7075 return $get_server;
7176 }

Status & tagging log