adding newline to end of wfDebug calls where it was missing.
authorAlex Z <mrzman@users.mediawiki.org>
Tue, 13 Jan 2009 20:28:54 +0000 (20:28 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Tue, 13 Jan 2009 20:28:54 +0000 (20:28 +0000)
includes/AutoLoader.php
includes/Block.php
includes/EditPage.php
includes/GlobalFunctions.php
includes/Linker.php
includes/RawPage.php
includes/SearchPostgres.php
includes/SkinTemplate.php
includes/UploadBase.php
includes/filerepo/LocalFile.php
includes/specials/SpecialUpload.php

index ce1912e..8c47db0 100644 (file)
@@ -556,7 +556,7 @@ class AutoLoader {
                        }
                        if ( !$filename ) {
                                if( function_exists( 'wfDebug' ) )      
-                                       wfDebug( "Class {$className} not found; skipped loading" );
+                                       wfDebug( "Class {$className} not found; skipped loading\n" );
                                # Give up
                                return false;
                        }
index 2c2227e..9423b88 100644 (file)
@@ -570,7 +570,7 @@ class Block {
                
                ## Allow hooks to cancel the autoblock.
                if (!wfRunHooks( 'AbortAutoblock', array( $autoblockIP, &$this ) )) {
-                       wfDebug( "Autoblock aborted by hook." );
+                       wfDebug( "Autoblock aborted by hook.\n" );
                        return false;
                }
 
index c13be5a..25711cf 100644 (file)
@@ -744,7 +744,7 @@ class EditPage {
 
                if ( !wfRunHooks( 'EditPage::attemptSave', array( &$this ) ) )
                {
-                       wfDebug( "Hook 'EditPage::attemptSave' aborted article saving" );
+                       wfDebug( "Hook 'EditPage::attemptSave' aborted article saving\n" );
                        return self::AS_HOOK_ERROR;
                }
 
index b4303a0..878f3bc 100644 (file)
@@ -431,7 +431,7 @@ function wfGetLangObj( $langcode = false ){
                return Language::factory( $langcode );
 
        # $langcode is a string, but not a valid language code; use content language.
-       wfDebug( 'Invalid language code passed to wfGetLangObj, falling back to content language.' );
+       wfDebug( "Invalid language code passed to wfGetLangObj, falling back to content language.\n" );
        return $wgContLang;
 }
 
@@ -771,7 +771,7 @@ function wfAbruptExit( $error = false ){
                        wfDebug("WARNING: Abrupt exit in $file at line $line\n");
                }
        } else {
-               wfDebug('WARNING: Abrupt exit\n');
+               wfDebug("WARNING: Abrupt exit\n");
        }
 
        wfLogProfilingData();
@@ -1837,7 +1837,7 @@ function wfGetCachedNotice( $name ) {
                        $parserMemc->set( $key, array( 'html' => $parsed, 'hash' => md5( $notice ) ), 600 );
                        $notice = $parsed;
                } else {
-                       wfDebug( 'wfGetCachedNotice called for ' . $name . ' with no $wgOut available' );
+                       wfDebug( 'wfGetCachedNotice called for ' . $name . ' with no $wgOut available'."\n" );
                        $notice = '';
                }
        }
index f116fb4..5a346cc 100644 (file)
@@ -618,7 +618,7 @@ class Linker {
                $img = '';
                $success = wfRunHooks('LinkerMakeExternalImage', array( &$url, &$alt, &$img ) );
                if(!$success) {
-                       wfDebug("Hook LinkerMakeExternalImage changed the output of external image with url {$url} and alt text {$alt} to {$img}", true);
+                       wfDebug("Hook LinkerMakeExternalImage changed the output of external image with url {$url} and alt text {$alt} to {$img}\n", true);
                        return $img;
                }
                return Xml::element( 'img',
@@ -1020,7 +1020,7 @@ class Linker {
                $link = '';
                $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &$link ) );
                if(!$success) {
-                       wfDebug("Hook LinkerMakeExternalLink changed the output of link with url {$url} and text {$text} to {$link}", true);
+                       wfDebug("Hook LinkerMakeExternalLink changed the output of link with url {$url} and text {$text} to {$link}\n", true);
                        return $link;
                }
                return '<a href="'.$url.'"'.$attribsText.'>'.$text.'</a>';
index 7093367..b16b8fa 100644 (file)
@@ -164,7 +164,7 @@ class RawPage {
                $text = $this->getRawText();
 
                if( !wfRunHooks( 'RawPageViewBeforeOutput', array( &$this, &$text ) ) ) {
-                       wfDebug( __METHOD__ . ': RawPageViewBeforeOutput hook broke raw page output.' );
+                       wfDebug( __METHOD__ . ": RawPageViewBeforeOutput hook broke raw page output.\n" );
                }
 
                echo $text;
index 4862a44..fa9d842 100644 (file)
@@ -70,7 +70,7 @@ class SearchPostgres extends SearchEngine {
        */
        function parseQuery( $term ) {
 
-               wfDebug( "parseQuery received: $term" );
+               wfDebug( "parseQuery received: $term \n" );
 
                ## No backslashes allowed
                $term = preg_replace('/\\\/', '', $term);
@@ -122,7 +122,7 @@ class SearchPostgres extends SearchEngine {
                ## Quote the whole thing
                $searchstring = $this->db->addQuotes($searchstring);
 
-               wfDebug( "parseQuery returned: $searchstring" );
+               wfDebug( "parseQuery returned: $searchstring \n" );
 
                return $searchstring;
 
@@ -194,7 +194,7 @@ class SearchPostgres extends SearchEngine {
 
                $query .= $this->db->limitResult( '', $this->limit, $this->offset );
 
-               wfDebug( "searchQuery returned: $query" );
+               wfDebug( "searchQuery returned: $query \n" );
 
                return $query;
        }
index f61104f..7295a03 100644 (file)
@@ -454,7 +454,7 @@ class SkinTemplate extends Skin {
 
                // original version by hansm
                if( !wfRunHooks( 'SkinTemplateOutputPageBeforeExec', array( &$this, &$tpl ) ) ) {
-                       wfDebug( __METHOD__ . ': Hook SkinTemplateOutputPageBeforeExec broke outputPage execution!' );
+                       wfDebug( __METHOD__ . ": Hook SkinTemplateOutputPageBeforeExec broke outputPage execution!\n" );
                }
 
                // allow extensions adding stuff after the page content.
index 91155a1..8ee7031 100644 (file)
@@ -711,7 +711,7 @@ class UploadBase {
                                }
                        }
 
-                       wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output" );
+                       wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output \n" );
                        return $output;
                }
        }
index 6fd6de7..b997d75 100644 (file)
@@ -1760,12 +1760,12 @@ class LocalFileMoveBatch {
                        $oldName = $row->oi_archive_name;
                        $bits = explode( '!', $oldName, 2 );
                        if( count( $bits ) != 2 ) {
-                               wfDebug( 'Invalid old file name: ' . $oldName );
+                               wfDebug( "Invalid old file name: $oldName \n" );
                                continue;
                        }
                        list( $timestamp, $filename ) = $bits;
                        if( $this->oldName != $filename ) {
-                               wfDebug( 'Invalid old file name:' . $oldName );
+                               wfDebug( "Invalid old file name: $oldName \n" );
                                continue;
                        }
                        $this->oldCount++;
index 7a92f9b..e5a3cf9 100644 (file)
@@ -372,7 +372,7 @@ class UploadForm {
 
                if( !wfRunHooks( 'UploadForm:BeforeProcessing', array( &$this ) ) )
                {
-                       wfDebug( "Hook 'UploadForm:BeforeProcessing' broke processing the file." );
+                       wfDebug( "Hook 'UploadForm:BeforeProcessing' broke processing the file.\n" );
                        return self::BEFORE_PROCESSING;
                }
 
@@ -957,7 +957,7 @@ wgUploadAutoFill = {$autofill};
 
                if( !wfRunHooks( 'UploadForm:initial', array( &$this ) ) )
                {
-                       wfDebug( "Hook 'UploadForm:initial' broke output of the upload form" );
+                       wfDebug( "Hook 'UploadForm:initial' broke output of the upload form\n" );
                        return false;
                }
 
@@ -1658,7 +1658,7 @@ wgUploadAutoFill = {$autofill};
                                }
                        }
 
-                       wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output" );
+                       wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output \n" );
                        return $output;
                }
        }