From f54517072818fbfe6fc2f2e53689b9376f5a856e Mon Sep 17 00:00:00 2001 From: mrpete Date: Sat, 20 Jan 2007 15:57:53 +0000 Subject: [PATCH] Bugfix #3568 - wysiwyg was not being tested for properly. This has been an ongoing issue, now resolved. admin and user code need not download wysiwyg js etc -- use e_WYSIWYG constant to see if it is enabled. --- e107_admin/header.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/e107_admin/header.php b/e107_admin/header.php index 86d8a6a8e..6232fb6f5 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/header.php,v $ -| $Revision: 1.6 $ -| $Date: 2006-12-22 18:47:10 $ -| $Author: e107coders $ +| $Revision: 1.7 $ +| $Date: 2007-01-20 15:57:53 $ +| $Author: mrpete $ +---------------------------------------------------------------+ */ @@ -129,7 +129,9 @@ echo "\n"; // Wysiwyg JS support on or off. // your code should run off e_WYSIWYG if (varset($pref['wysiwyg'],FALSE) && check_class($pref['post_html']) && varset($e_wysiwyg) != "") { + require_once(e_HANDLER."tiny_mce/wysiwyg.php"); define("e_WYSIWYG",TRUE); + echo wysiwyg($e_wysiwyg); }else{ define("e_WYSIWYG",FALSE); }