Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -431,7 +431,7 @@ |
432 | 432 | return Language::factory( $langcode ); |
433 | 433 | |
434 | 434 | # $langcode is a string, but not a valid language code; use content language. |
435 | | - wfDebug( 'Invalid language code passed to wfGetLangObj, falling back to content language.' ); |
| 435 | + wfDebug( "Invalid language code passed to wfGetLangObj, falling back to content language.\n" ); |
436 | 436 | return $wgContLang; |
437 | 437 | } |
438 | 438 | |
— | — | @@ -771,7 +771,7 @@ |
772 | 772 | wfDebug("WARNING: Abrupt exit in $file at line $line\n"); |
773 | 773 | } |
774 | 774 | } else { |
775 | | - wfDebug('WARNING: Abrupt exit\n'); |
| 775 | + wfDebug("WARNING: Abrupt exit\n"); |
776 | 776 | } |
777 | 777 | |
778 | 778 | wfLogProfilingData(); |
— | — | @@ -1837,7 +1837,7 @@ |
1838 | 1838 | $parserMemc->set( $key, array( 'html' => $parsed, 'hash' => md5( $notice ) ), 600 ); |
1839 | 1839 | $notice = $parsed; |
1840 | 1840 | } else { |
1841 | | - wfDebug( 'wfGetCachedNotice called for ' . $name . ' with no $wgOut available' ); |
| 1841 | + wfDebug( 'wfGetCachedNotice called for ' . $name . ' with no $wgOut available'."\n" ); |
1842 | 1842 | $notice = ''; |
1843 | 1843 | } |
1844 | 1844 | } |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -618,7 +618,7 @@ |
619 | 619 | $img = ''; |
620 | 620 | $success = wfRunHooks('LinkerMakeExternalImage', array( &$url, &$alt, &$img ) ); |
621 | 621 | if(!$success) { |
622 | | - wfDebug("Hook LinkerMakeExternalImage changed the output of external image with url {$url} and alt text {$alt} to {$img}", true); |
| 622 | + wfDebug("Hook LinkerMakeExternalImage changed the output of external image with url {$url} and alt text {$alt} to {$img}\n", true); |
623 | 623 | return $img; |
624 | 624 | } |
625 | 625 | return Xml::element( 'img', |
— | — | @@ -1020,7 +1020,7 @@ |
1021 | 1021 | $link = ''; |
1022 | 1022 | $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &$link ) ); |
1023 | 1023 | if(!$success) { |
1024 | | - wfDebug("Hook LinkerMakeExternalLink changed the output of link with url {$url} and text {$text} to {$link}", true); |
| 1024 | + wfDebug("Hook LinkerMakeExternalLink changed the output of link with url {$url} and text {$text} to {$link}\n", true); |
1025 | 1025 | return $link; |
1026 | 1026 | } |
1027 | 1027 | return '<a href="'.$url.'"'.$attribsText.'>'.$text.'</a>'; |
Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -1760,12 +1760,12 @@ |
1761 | 1761 | $oldName = $row->oi_archive_name; |
1762 | 1762 | $bits = explode( '!', $oldName, 2 ); |
1763 | 1763 | if( count( $bits ) != 2 ) { |
1764 | | - wfDebug( 'Invalid old file name: ' . $oldName ); |
| 1764 | + wfDebug( "Invalid old file name: $oldName \n" ); |
1765 | 1765 | continue; |
1766 | 1766 | } |
1767 | 1767 | list( $timestamp, $filename ) = $bits; |
1768 | 1768 | if( $this->oldName != $filename ) { |
1769 | | - wfDebug( 'Invalid old file name:' . $oldName ); |
| 1769 | + wfDebug( "Invalid old file name: $oldName \n" ); |
1770 | 1770 | continue; |
1771 | 1771 | } |
1772 | 1772 | $this->oldCount++; |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -744,7 +744,7 @@ |
745 | 745 | |
746 | 746 | if ( !wfRunHooks( 'EditPage::attemptSave', array( &$this ) ) ) |
747 | 747 | { |
748 | | - wfDebug( "Hook 'EditPage::attemptSave' aborted article saving" ); |
| 748 | + wfDebug( "Hook 'EditPage::attemptSave' aborted article saving\n" ); |
749 | 749 | return self::AS_HOOK_ERROR; |
750 | 750 | } |
751 | 751 | |
Index: trunk/phase3/includes/SearchPostgres.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | */ |
72 | 72 | function parseQuery( $term ) { |
73 | 73 | |
74 | | - wfDebug( "parseQuery received: $term" ); |
| 74 | + wfDebug( "parseQuery received: $term \n" ); |
75 | 75 | |
76 | 76 | ## No backslashes allowed |
77 | 77 | $term = preg_replace('/\\\/', '', $term); |
— | — | @@ -122,7 +122,7 @@ |
123 | 123 | ## Quote the whole thing |
124 | 124 | $searchstring = $this->db->addQuotes($searchstring); |
125 | 125 | |
126 | | - wfDebug( "parseQuery returned: $searchstring" ); |
| 126 | + wfDebug( "parseQuery returned: $searchstring \n" ); |
127 | 127 | |
128 | 128 | return $searchstring; |
129 | 129 | |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | |
196 | 196 | $query .= $this->db->limitResult( '', $this->limit, $this->offset ); |
197 | 197 | |
198 | | - wfDebug( "searchQuery returned: $query" ); |
| 198 | + wfDebug( "searchQuery returned: $query \n" ); |
199 | 199 | |
200 | 200 | return $query; |
201 | 201 | } |
Index: trunk/phase3/includes/AutoLoader.php |
— | — | @@ -556,7 +556,7 @@ |
557 | 557 | } |
558 | 558 | if ( !$filename ) { |
559 | 559 | if( function_exists( 'wfDebug' ) ) |
560 | | - wfDebug( "Class {$className} not found; skipped loading" ); |
| 560 | + wfDebug( "Class {$className} not found; skipped loading\n" ); |
561 | 561 | # Give up |
562 | 562 | return false; |
563 | 563 | } |
Index: trunk/phase3/includes/RawPage.php |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | $text = $this->getRawText(); |
166 | 166 | |
167 | 167 | if( !wfRunHooks( 'RawPageViewBeforeOutput', array( &$this, &$text ) ) ) { |
168 | | - wfDebug( __METHOD__ . ': RawPageViewBeforeOutput hook broke raw page output.' ); |
| 168 | + wfDebug( __METHOD__ . ": RawPageViewBeforeOutput hook broke raw page output.\n" ); |
169 | 169 | } |
170 | 170 | |
171 | 171 | echo $text; |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -454,7 +454,7 @@ |
455 | 455 | |
456 | 456 | // original version by hansm |
457 | 457 | if( !wfRunHooks( 'SkinTemplateOutputPageBeforeExec', array( &$this, &$tpl ) ) ) { |
458 | | - wfDebug( __METHOD__ . ': Hook SkinTemplateOutputPageBeforeExec broke outputPage execution!' ); |
| 458 | + wfDebug( __METHOD__ . ": Hook SkinTemplateOutputPageBeforeExec broke outputPage execution!\n" ); |
459 | 459 | } |
460 | 460 | |
461 | 461 | // allow extensions adding stuff after the page content. |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -372,7 +372,7 @@ |
373 | 373 | |
374 | 374 | if( !wfRunHooks( 'UploadForm:BeforeProcessing', array( &$this ) ) ) |
375 | 375 | { |
376 | | - wfDebug( "Hook 'UploadForm:BeforeProcessing' broke processing the file." ); |
| 376 | + wfDebug( "Hook 'UploadForm:BeforeProcessing' broke processing the file.\n" ); |
377 | 377 | return self::BEFORE_PROCESSING; |
378 | 378 | } |
379 | 379 | |
— | — | @@ -957,7 +957,7 @@ |
958 | 958 | |
959 | 959 | if( !wfRunHooks( 'UploadForm:initial', array( &$this ) ) ) |
960 | 960 | { |
961 | | - wfDebug( "Hook 'UploadForm:initial' broke output of the upload form" ); |
| 961 | + wfDebug( "Hook 'UploadForm:initial' broke output of the upload form\n" ); |
962 | 962 | return false; |
963 | 963 | } |
964 | 964 | |
— | — | @@ -1658,7 +1658,7 @@ |
1659 | 1659 | } |
1660 | 1660 | } |
1661 | 1661 | |
1662 | | - wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output" ); |
| 1662 | + wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output \n" ); |
1663 | 1663 | return $output; |
1664 | 1664 | } |
1665 | 1665 | } |
Index: trunk/phase3/includes/Block.php |
— | — | @@ -570,7 +570,7 @@ |
571 | 571 | |
572 | 572 | ## Allow hooks to cancel the autoblock. |
573 | 573 | if (!wfRunHooks( 'AbortAutoblock', array( $autoblockIP, &$this ) )) { |
574 | | - wfDebug( "Autoblock aborted by hook." ); |
| 574 | + wfDebug( "Autoblock aborted by hook.\n" ); |
575 | 575 | return false; |
576 | 576 | } |
577 | 577 | |
Index: trunk/phase3/includes/UploadBase.php |
— | — | @@ -711,7 +711,7 @@ |
712 | 712 | } |
713 | 713 | } |
714 | 714 | |
715 | | - wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output" ); |
| 715 | + wfDebug( __METHOD__.": FOUND VIRUS! scanner feedback: $output \n" ); |
716 | 716 | return $output; |
717 | 717 | } |
718 | 718 | } |