More whitespace tweaks...and fixed doc typo
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 20 Oct 2011 19:05:48 +0000 (19:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 20 Oct 2011 19:05:48 +0000 (19:05 +0000)
thumb.php

index dfbd4a3..15a8666 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -46,7 +46,7 @@ function wfThumbMain() {
        unset( $params['r'] ); // ignore 'r' because we unconditionally pass File::RENDER
 
        // Is this a thumb of an archived file?
-       $isOld = (isset( $params['archived'] ) && $params['archived']);
+       $isOld = ( isset( $params['archived'] ) && $params['archived'] );
        unset( $params['archived'] );
 
        // Some basic input validation
@@ -182,7 +182,7 @@ function wfThumbError( $status, $msg ) {
        } else {
                header( 'HTTP/1.1 500 Internal server error' );
        }
-       if( $wgShowHostnames ) {
+       if ( $wgShowHostnames ) {
                $url = htmlspecialchars( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' );
                $hostname = htmlspecialchars( wfHostname() );
                $debug = "<!-- $url -->\n<!-- $hostname -->\n";