Implemented success message after creating a report
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 26 Oct 2008 20:29:52 +0000 (20:29 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 26 Oct 2008 20:29:52 +0000 (20:29 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrreport@285 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index 9bca4014c88b283201fabdf96b10d6e12f0368a0..07a2f19c2e0674b79c8609d506dddc175b2df880 100644 (file)
@@ -307,12 +307,12 @@ class WrReport extends SpecialPage {
                                        )
                                );
 
-                               // Show success message (TODO)
-                               // $wgOut->addHTML('Bahnbericht für [[$page_title]] gespeichert! :-)');
                                // Purge cache
-                               Article::onArticleEdit($title);
-                               // Redirect to result
-                               $wgOut->redirect($title->getFullURL() . '#Eintr.C3.A4ge');
+                               $title->invalidateCache();
+                               // Show success message
+                               $wgOut->addWikiText(utf8_encode('<div class="successbox">Der Bahnbericht für [[') . $page_title . utf8_encode('#Einträge|') . $page_title . utf8_encode(']] wurde erfolgreich gespeichert.</div>'));
+                               // We could redirect to result with the following line but we don't want to.
+                               // $wgOut->redirect($title->getFullURL() . '#Eintr.C3.A4ge');
                        }
                        if ($action == 'preview') {
                                $wgOut->addHTML("<h3>Vorschau (noch nicht gespeichert)</h3>\n");