Index: trunk/extensions/MoodBar/SpecialFeedbackDashboard.php |
— | — | @@ -309,7 +309,7 @@ |
310 | 310 | if ( isset( $response[$id] ) ) { |
311 | 311 | $response_detail = $response[$id]; |
312 | 312 | |
313 | | - $responder = User::newFromId( $response_detail->mbfr_user_id ); |
| 313 | + $responder = User::newFromRow( $response_detail ); |
314 | 314 | |
315 | 315 | if ( $responder && !$responder->isAnon() ) { |
316 | 316 | $responsetime = MoodBarUtil::formatTimeSince( wfTimestamp( TS_UNIX, $response_detail->mbfr_timestamp ) ); |
— | — | @@ -730,9 +730,9 @@ |
731 | 731 | |
732 | 732 | // get the detail for each mbfr_id |
733 | 733 | if ( count( $mbfrId ) > 0 ) { |
734 | | - $res = $dbr->select( array( 'moodbar_feedback_response' ), |
735 | | - array( 'mbfr_id', 'mbfr_mbf_id', 'mbfr_user_id', 'mbfr_timestamp' ), |
736 | | - array( 'mbfr_id' => $mbfrId ), |
| 734 | + $res = $dbr->select( array( 'moodbar_feedback_response', 'user' ), |
| 735 | + array( 'mbfr_id', 'mbfr_mbf_id', 'mbfr_timestamp', 'user_id', 'user_name', 'user_real_name' ), |
| 736 | + array( 'mbfr_id' => $mbfrId, 'mbfr_user_id = user_id' ), |
737 | 737 | __METHOD__ |
738 | 738 | ); |
739 | 739 | |