Fixed nonworking editor preview due to uninitialized template
authorDan
Mon, 29 Sep 2008 08:26:21 -0400
changeset 714 2f1706c4231f
parent 713 6865705ec8a6
child 715 29663506e85c
Fixed nonworking editor preview due to uninitialized template
ajax.php
--- a/ajax.php	Mon Sep 29 08:25:59 2008 -0400
+++ b/ajax.php	Mon Sep 29 08:26:21 2008 -0400
@@ -469,6 +469,7 @@
       break;
     case "preview":
       require_once(ENANO_ROOT.'/includes/pageutils.php');
+      $template->init_vars();
       echo PageUtils::genPreview($_POST['text']);
       break;
     case "pagediff":