r80464 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80463‎ | r80464 | r80465 >
Date:21:03, 17 January 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
Fixed dumb issue
Modified paths:
  • /trunk/extensions/Awesomeness/Awesomeness.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Awesomeness/Awesomeness.php
@@ -47,8 +47,6 @@
4848 * Based on Svips patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7351
4949 */
5050 if ( array_key_exists( 'QUERY_STRING', $_SERVER ) ) {
51 - header( 'Content-Type: text/plain' );
52 -
5351 $O_o = false;
5452
5553 if ( strtolower( $_SERVER['QUERY_STRING'] ) == 'isthiswikiawesome' ) {
@@ -57,5 +55,8 @@
5856 $O_o = strrev( $_SERVER['QUERY_STRING'] );
5957 }
6058
61 - if ( $O_o ) die( $O_o );
 59+ if ( $O_o ) {
 60+ header( 'Content-Type: text/plain' );
 61+ die( $O_o );
 62+ }
6263 }
\ No newline at end of file

Status & tagging log