Allow wiki_preview in Post.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 7 Nov 2008 16:21:50 +0000 (17:21 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 7 Nov 2008 16:21:50 +0000 (17:21 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/core.php

index db4c7a1..8792c62 100644 (file)
@@ -187,7 +187,7 @@ class CoreModule extends PLModule
     function handler_wiki_preview(&$page, $action = 'title')
     {
         header('Content-Type: text/html; charset=utf-8');
-        $text = Get::v('text');
+        $text = Env::v('text');
         echo MiniWiki::wikiToHtml($text, $action == 'title');
         exit;
     }