r75063 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75062‎ | r75063 | r75064 >
Date:00:27, 20 October 2010
Author:mah
Status:ok
Tags:
Comment:
follow up r75046 — fix use of wfDebugLog() and replace getMessage() method on Status object with a method the Status object actually has: getWikiText().
Modified paths:
  • /trunk/extensions/RSS/RSSFetch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RSS/RSSFetch.php
@@ -175,7 +175,7 @@
176176
177177 // else we totally failed
178178 $RSS_FETCH_ERROR = $errormsg;
179 - wfDebugLog(
 179+ wfDebugLog( 'RSS',
180180 'RSSFetch: we totally failed :-( Error message:' .
181181 $errormsg
182182 );
@@ -211,7 +211,7 @@
212212 if( $fetch->isGood() ) {
213213 return $client;
214214 } else {
215 - wfDebugLog( 'RSS', 'error fetching $url: ' . $fetch->getMessage() );
 215+ wfDebugLog( 'RSS', 'error fetching $url: ' . $fetch->getWikiText() );
216216 }
217217 }
218218

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75046* Use [[Template:RSSPost]] (and [[Mediawiki:Rss-item]]) (or another...mah21:54, 19 October 2010

Status & tagging log