r66664 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66663‎ | r66664 | r66665 >
Date:23:28, 19 May 2010
Author:jeroendedauw
Status:deferred (Comments)
Tags:
Comment:
Made more awesome, based on code by Dantman
Modified paths:
  • /trunk/extensions/Awesomeness/Awesomeness.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Awesomeness/Awesomeness.php
@@ -48,18 +48,10 @@
4949
5050 $O_o = false;
5151
52 - switch ( strtolower( $_SERVER['QUERY_STRING'] ) ) {
53 - case 'o_o':
54 - $O_o = ( $_SERVER['QUERY_STRING'] == 'O_o' ) ? 'o_O' : 'O_o';
55 - break;
56 - case 'o_0':
57 - $O_o = '0_o';
58 - break;
59 - case '0_o':
60 - $O_o = 'o_0';
61 - break;
62 - case 'isthiswikiawesome':
63 - $O_o = 'Hell yeah!';
 52+ if ( strtolower( $_SERVER['QUERY_STRING'] ) == 'isthiswikiawesome' ) {
 53+ $O_o = 'Hell yeah!';
 54+ } else if ( preg_match( '/^[0Oo°][-_\.][0Oo°]$/', $_SERVER['QUERY_STRING'] ) ) {
 55+ $O_o = strrev( $_SERVER['QUERY_STRING'] );
6456 }
6557
6658 if ( $O_o ) die( $O_o );

Follow-up revisions

RevisionCommit summaryAuthorDate
r66667Follow up to r66664jeroendedauw23:36, 19 May 2010

Comments

#Comment by Reedy (talk | contribs)   23:31, 19 May 2010

Do we also include *~x on the left/right?

Status & tagging log