diff -r bb4e677a4da9 -r d807dcd7aed7 includes/pageutils.php
--- a/includes/pageutils.php Sat Aug 25 12:53:03 2007 -0400
+++ b/includes/pageutils.php Sun Aug 26 16:48:15 2007 -0400
@@ -1591,7 +1591,15 @@
function genPreview($text)
{
- return '
Reminder: This is only a preview - your changes to this page have not yet been saved.
'.RenderMan::render(RenderMan::preprocess_text($text, false, false)).'
';
+ $ret = 'Reminder: This is only a preview - your changes to this page have not yet been saved.
';
+ $text = RenderMan::render(RenderMan::preprocess_text($text, false, false));
+ ob_start();
+ eval('?>' . $text);
+ $text = ob_get_contents();
+ ob_end_clean();
+ $ret .= $text;
+ $ret .= '
';
+ return $ret;
}
/**