Use clearer code to distinguish logged in users from anonymous users.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 20 Nov 2018 21:39:36 +0000 (21:39 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 20 Nov 2018 21:39:36 +0000 (21:39 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2780 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport_body.php

index 099af875dc40fb6d2edaf3229396652881a22ccc..04d32e155f46a454906dec9a6ddcde2a68f475c6 100644 (file)
@@ -1408,7 +1408,7 @@ class SpecialWrReport extends SpecialPage {
                                $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());
                                $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)
+                               if ($wgUser->isLoggedIn())
                                        $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-loggedin')->text());
                                else
                                        $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-anonymous')->text());
                                        $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-loggedin')->text());
                                else
                                        $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-anonymous')->text());