Index: trunk/extensions/LiquidThreads/i18n/Lqt.i18n.php |
— | — | @@ -295,7 +295,7 @@ |
296 | 296 | |
297 | 297 | // Automatic summaries |
298 | 298 | 'lqt-newpost-summary' => 'New thread: $1', |
299 | | - 'lqt-newpost-defaultbody-user-submitted-empty-textbody' => "<!-- thread subject $1 -->''Please enter your text for this thread. You should delete this line then.''", |
| 299 | + 'lqt-newpost-defaultbody-user-submitted-empty-textbody' => "Please enter your text for this thread. You should delete this line then.", |
300 | 300 | 'lqt-reply-summary' => 'Reply to [[$2|$1]]', |
301 | 301 | |
302 | 302 | // Talk page history |
Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php |
— | — | @@ -263,8 +263,9 @@ |
264 | 264 | // Check for text |
265 | 265 | if ( empty( $params['text'] ) ) { |
266 | 266 | // $this->dieUsage( 'You must include text in your post', 'no-text' ); |
267 | | - // FIXME: add an "edit post" link as second parameter $2 to the text |
268 | | - $params['text'] = wfMsgForContent( 'lqt-newpost-defaultbody-user-submitted-empty-textbody', $subject ) ; |
| 267 | + // creating a thread with a body dummy rendered as "edit" link for itself |
| 268 | + $defaultBody = wfMsgForContent( 'lqt-newpost-defaultbody-user-submitted-empty-textbody', $subject ) ; |
| 269 | + $params['text'] = "''[{{fullurl:{{FULLPAGENAMEE}}|action=edit}} $defaultBody]''"; |
269 | 270 | } |
270 | 271 | $text = $params['text']; |
271 | 272 | |