Index: trunk/extensions/MoodBar/ApiFeedbackDashboardResponse.php |
— | — | @@ -46,14 +46,15 @@ |
47 | 47 | |
48 | 48 | $this->disableUserTalkEmailNotification(); |
49 | 49 | |
| 50 | + $id = intval( $item->getProperty( 'id' ) ); |
50 | 51 | $api = new ApiMain( new FauxRequest( array( |
51 | 52 | 'action' => 'edit', |
52 | 53 | 'title' => $talkPage->getFullText(), |
53 | 54 | 'appendtext' => ( $talkPage->exists() ? "\n\n" : '' ) . |
54 | 55 | $feedback_link . "\n" . |
55 | | - '<span id="feedback-dashboard-response-' . $item->getProperty('id') . '"></span>' . "\n\n" . |
| 56 | + '<span id="feedback-dashboard-response-' . $id . '"></span>' . "\n\n" . |
56 | 57 | $response . "\n\n~~~~\n\n" . |
57 | | - '<span class="markashelpful-item" data-markashelpful-item="' . $item->getProperty('id') . '" data-markashelpful-type="mbresponse"></span>', |
| 58 | + '<span class="markashelpful-item" data-markashelpful-item="' . $id . '" data-markashelpful-type="mbresponse"></span>', |
58 | 59 | 'token' => $params['token'], |
59 | 60 | 'summary' => $summary, |
60 | 61 | 'notminor' => true, |