From 6779a2cc137aef2e125ded723640686fdfa0db38 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Tue, 13 Jan 2009 20:28:54 +0000 Subject: [PATCH] adding newline to end of wfDebug calls where it was missing. --- includes/AutoLoader.php | 2 +- includes/Block.php | 2 +- includes/EditPage.php | 2 +- includes/GlobalFunctions.php | 6 +++--- includes/Linker.php | 4 ++-- includes/RawPage.php | 2 +- includes/SearchPostgres.php | 6 +++--- includes/SkinTemplate.php | 2 +- includes/UploadBase.php | 2 +- includes/filerepo/LocalFile.php | 4 ++-- includes/specials/SpecialUpload.php | 6 +++--- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index ce1912ea65..8c47db0b6f 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -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; } diff --git a/includes/Block.php b/includes/Block.php index 2c2227e2e7..9423b8850c 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -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; } diff --git a/includes/EditPage.php b/includes/EditPage.php index c13be5ab83..25711cf1d9 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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; } diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b4303a0b26..878f3bcf89 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 = ''; } } diff --git a/includes/Linker.php b/includes/Linker.php index f116fb4a03..5a346ccd64 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 ''.$text.''; diff --git a/includes/RawPage.php b/includes/RawPage.php index 7093367ff0..b16b8fab8a 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -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; diff --git a/includes/SearchPostgres.php b/includes/SearchPostgres.php index 4862a44e57..fa9d8420d5 100644 --- a/includes/SearchPostgres.php +++ b/includes/SearchPostgres.php @@ -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; } diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index f61104f453..7295a03446 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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. diff --git a/includes/UploadBase.php b/includes/UploadBase.php index 91155a1ba2..8ee70310f3 100644 --- a/includes/UploadBase.php +++ b/includes/UploadBase.php @@ -711,7 +711,7 @@ class UploadBase { } } - wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output" ); + wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output \n" ); return $output; } } diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 6fd6de72d4..b997d75f36 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -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++; diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 7a92f9b1ad..e5a3cf9543 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -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; } } -- 2.20.1