Some minor coding practice fixes;
authorAbhishek Das <das.abhshk@gmail.com>
Wed, 20 Feb 2013 10:20:28 +0000 (15:50 +0530)
committerAbhishek Das <das.abhshk@gmail.com>
Wed, 20 Feb 2013 10:31:14 +0000 (16:01 +0530)
There were a few lines in `SpecialVersion.php` that caused the build to
be marked as failure. Fixing those:
1. Line 594 - String concat not required, so using single string instead

Change-Id: I799d11aaaf953d09f681585ee23dc5bf496af3d4

includes/specials/SpecialVersion.php

index b04f1ef..88d647e 100644 (file)
@@ -594,8 +594,7 @@ class SpecialVersion extends SpecialPage {
         */
        private function IPInfo() {
                $ip = str_replace( '--', ' - ', htmlspecialchars( $this->getRequest()->getIP() ) );
-               return "<!-- visited from $ip -->\n" .
-                       "<span style='display:none'>visited from $ip</span>";
+               return "<!-- visited from $ip -->\n<span style='display:none'>visited from $ip</span>";
        }
 
        /**