r66036 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66035‎ | r66036 | r66037 >
Date:18:46, 7 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r66030 - applied Reedy's patch
Modified paths:
  • /trunk/extensions/Awesomeness/Awesomeness.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Awesomeness/Awesomeness.php
@@ -44,23 +44,21 @@
4545 * Based on Svips patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7351
4646 */
4747 if ( array_key_exists( 'QUERY_STRING', $_SERVER ) ) {
 48+ header( 'Content-Type: text/plain' );
4849
49 - switch ( strtolower( $_SERVER['QUERY_STRING'] ) )
50 - {
 50+ switch ( strtolower( $_SERVER['QUERY_STRING'] ) ) {
5151 case 'o_o':
52 - header( 'Content-Type: text/plain' );
53 - die( $_SERVER['QUERY_STRING'] == 'O_o' ? 'o_O' : 'O_o' );
54 -
 52+ $O_o = ( $_SERVER['QUERY_STRING'] == 'O_o' ) ? 'o_O' : 'O_o';
 53+ break;
5554 case 'o_0':
56 - header( 'Content-Type: text/plain' );
57 - die( '0_o' );
58 -
 55+ $O_o = '0_o';
 56+ break;
5957 case '0_o':
60 - header( 'Content-Type: text/plain' );
61 - die( 'o_0' );
62 -
 58+ $O_o = 'o_0';
 59+ break;
6360 case 'isthiswikiawesome':
64 - header( 'Content-Type: text/plain' );
65 - die( 'hell yeah!' );
 61+ $O_o = 'Hell yeah!';
6662 }
 63+
 64+ die( $O_o );
6765 }
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r66030Added Svips O_o patch.jeroendedauw17:54, 7 May 2010

Status & tagging log