Prevent bug #35 (Caching problems of report form).
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 17 Jan 2009 20:51:22 +0000 (20:51 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 17 Jan 2009 20:51:22 +0000 (20:51 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrreport@381 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index ea1ea1c968ff7a0c85dee658953d448c6c7fe332..7df26b8c904a97ee806bf0ecd66c45c54563373c 100644 (file)
@@ -364,7 +364,10 @@ function bahnberichtformularParserHook($input, $args, $parser) {
        // Calling "$title = $parser->getTitle(); $title->invalidateCache();" doesn't help here to force regeneration
        // However, this would not be the best solution because the page has to be re-rendered only at midnight
 
-       return replaceByMarker(wrReportFormRender(TRUE, $parser->getTitle()->getText(), NULL, NULL, NULL, $author_name));
+       // In the following line, $author_name was replaced by NULL to prevent a bug, where the wrong author_name
+       // is shown (see ticket #35). TODO: Find reason.
+       // return replaceByMarker(wrReportFormRender(TRUE, $parser->getTitle()->getText(), NULL, NULL, NULL, $author_name));
+       return replaceByMarker(wrReportFormRender(TRUE, $parser->getTitle()->getText(), NULL, NULL, NULL, NULL));
 }