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