Remove orphan call to wfProfileOut()
authorPlatonides <platonides@gmail.com>
Sun, 6 Jan 2013 16:30:34 +0000 (17:30 +0100)
committerPlatonides <platonides@gmail.com>
Sun, 6 Jan 2013 18:38:19 +0000 (19:38 +0100)
Also added spaces on line 247 per coding conventions.

Change-Id: Ib63167d4371ac71ce7580fafefdb0eabc2e0b590

includes/HistoryBlob.php

index 05c27fe..55c2ae5 100644 (file)
@@ -232,8 +232,6 @@ class HistoryBlobStub {
         * @return string
         */
        function getText() {
-               $fname = 'HistoryBlobStub::getText';
-
                if( isset( self::$blobCache[$this->mOldId] ) ) {
                        $obj = self::$blobCache[$this->mOldId];
                } else {
@@ -244,10 +242,9 @@ class HistoryBlobStub {
                        }
                        $flags = explode( ',', $row->old_flags );
                        if( in_array( 'external', $flags ) ) {
-                               $url=$row->old_text;
+                               $url = $row->old_text;
                                $parts = explode( '://', $url, 2 );
                                if ( !isset( $parts[1] ) || $parts[1] == '' ) {
-                                       wfProfileOut( $fname );
                                        return false;
                                }
                                $row->old_text = ExternalStore::fetchFromUrl($url);