Index: trunk/extensions/Awesomeness/Awesomeness.php |
— | — | @@ -47,8 +47,6 @@ |
48 | 48 | * Based on Svips patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7351 |
49 | 49 | */ |
50 | 50 | if ( array_key_exists( 'QUERY_STRING', $_SERVER ) ) { |
51 | | - header( 'Content-Type: text/plain' ); |
52 | | - |
53 | 51 | $O_o = false; |
54 | 52 | |
55 | 53 | if ( strtolower( $_SERVER['QUERY_STRING'] ) == 'isthiswikiawesome' ) { |
— | — | @@ -57,5 +55,8 @@ |
58 | 56 | $O_o = strrev( $_SERVER['QUERY_STRING'] ); |
59 | 57 | } |
60 | 58 | |
61 | | - if ( $O_o ) die( $O_o ); |
| 59 | + if ( $O_o ) { |
| 60 | + header( 'Content-Type: text/plain' ); |
| 61 | + die( $O_o ); |
| 62 | + } |
62 | 63 | } |
\ No newline at end of file |