$output->addWikiText(wfMessage('wrreport-newreport-preview-middle')->text());
$output->addHTML(wrReportFormRender(FALSE, $page_title, $date_report, $time_report, $condition, $description, $author_name));
$output->addWikiText(wfMessage('wrreport-newreport-preview-bottom')->text());
+ if ($author_userid)
+ $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-loggedin')->text());
+ else
+ $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-anonymous')->text());
}
}
'wrreport-newreport-preview-top' => 'WikiText',
'wrreport-newreport-preview-middle' => 'WikiText',
'wrreport-newreport-preview-bottom' => 'WikiText',
+ 'wrreport-newreport-preview-bottom-loggedin' => 'Shown on the bottom of the preview page (after \'wrreport-deletereport-preview-bottom\') if the user is logged in. WikiText.',
+ 'wrreport-newreport-preview-bottom-anonymous' => 'Shown on the bottom of the preview page (after \'wrreport-deletereport-preview-bottom\') if the user is not logged in. WikiText.',
'wrreport-newreport-success' => 'WikiText',
'wrreport-deletereport-tablesummary' => 'Text',
'wrreport-deletereport-reason' => 'Text',
'wrreport-newreport-preview-top' => '== Preview (\'\'not saved yet\'\') ==',
'wrreport-newreport-preview-middle' => '== Save or change ==',
'wrreport-newreport-preview-bottom' => '',
+ 'wrreport-newreport-preview-bottom-loggedin' => '',
+ 'wrreport-newreport-preview-bottom-anonymous' => '',
'wrreport-newreport-success' => '<div class="successbox">The sledrun report for $1 was saved successfully.</div>',
'wrreport-deletereport-tablesummary' => 'Form to delete a sledrun report',
'wrreport-deletereport-reason' => 'Reason',
'wrreport-newreport-preview-top' => '== Vorschau (\'\'noch nicht gespeichert\'\') ==',
'wrreport-newreport-preview-middle' => '== Speichern oder Ändern ==',
'wrreport-newreport-preview-bottom' => '',
+ 'wrreport-newreport-preview-bottom-loggedin' => '',
+ 'wrreport-newreport-preview-bottom-anonymous' => '',
'wrreport-newreport-success' => '<div class="successbox">Der Bahnbericht für $1 wurde erfolgreich gespeichert.</div>',
'wrreport-deletereport-tablesummary' => 'Formular zum Löschen eines Schneelageberichtes',
'wrreport-deletereport-reason' => 'Begründung',