r66037 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66036‎ | r66037 | r66038 >
Date:18:51, 7 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed not so awesome bug
Modified paths:
  • /trunk/extensions/Awesomeness/Awesomeness.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Awesomeness/Awesomeness.php
@@ -46,6 +46,8 @@
4747 if ( array_key_exists( 'QUERY_STRING', $_SERVER ) ) {
4848 header( 'Content-Type: text/plain' );
4949
 50+ $O_o = false;
 51+
5052 switch ( strtolower( $_SERVER['QUERY_STRING'] ) ) {
5153 case 'o_o':
5254 $O_o = ( $_SERVER['QUERY_STRING'] == 'O_o' ) ? 'o_O' : 'O_o';
@@ -60,5 +62,5 @@
6163 $O_o = 'Hell yeah!';
6264 }
6365
64 - die( $O_o );
 66+ if ( $O_o ) die( $O_o );
6567 }
\ No newline at end of file

Status & tagging log