"Bsitu" posted a comment on MediaWiki.r111472.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/111472#c31148

Commit summary for MediaWiki.r111472:

bug 34090 - Added an additional column in the main feedback table to keep a 
count of the number of activities which have happened for each piece of 
feedback - this should be equivalent to running a "count(*)" on the logging 
table for a specific piece of feedback.  Made sure the counter is incremented 
when a new log entry concerning activity is added.  Created a new api to get an 
html block of activity for use on the feedback page.  Returns a json object 
with "activity" = html block of activities, more set to true IF there are more 
entries to fetch, can have the limit changed and uses continue to get the next 
entries if more is true, send it the feedbackid and optionally a limit and/or 
continue value

Bsitu's comment:

<source lang="php">
// fetch our activity database information
$feedback = $this->fetchFeedback( $feedbackId );

// get the string title for the page
$page = Title::newFromID( $feedback->af_page_id );
</source>

$feedback may be a ResultWrapper or boolean false, that should be checked

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to