[dev] [PATCH] /imp/templates/compose/compose.inc

Marc Jauvin marc at register4less.com
Sun Feb 15 06:23:03 PST 2004


OK, I finally nailed the problem.

Turns out the "$_POST['rtemode']" variable was NOT defined when using
COMPOSE_HTML by default. Now using "$rtemode" as the rest of the template did
anyway.

Patch is in attachment, please commit.

--
Marc Jauvin
http://register4less.com
450-441-5458
-------------- next part --------------
Index: compose.inc
===================================================================
RCS file: /repository/imp/templates/compose/compose.inc,v
retrieving revision 2.266
diff -u -r2.266 compose.inc
--- compose.inc 11 Feb 2004 17:42:41 -0000      2.266
+++ compose.inc 15 Feb 2004 14:18:48 -0000
@@ -425,7 +425,7 @@
   <tr>
     <td class="light" align="right" valign="top"><b><?php echo Horde::label('message', _("Text")) ?>&nbsp;</b></td>
     <td class="item">
-      <textarea class="composebody" tabindex="<?php echo $tabindex++ ?>" name="message" id="message" rows="20" cols="<?php echo $prefs->getValue('wrap_width') ?>"<?php if ($GLOBALS['browser']->isBrowser('msie') && (!isset($_POST['rtemode']) || ($_POST['rtemode'] != 2))) { echo ' wrap="hard"'; } ?>><?php echo htmlspecialchars($msg) ?></textarea>
+      <textarea class="composebody" tabindex="<?php echo $tabindex++ ?>" name="message" id="message" rows="20" cols="<?php echo $prefs->getValue('wrap_width') ?>"<?php if ($GLOBALS['browser']->isBrowser('msie') && (!isset($rtemode) || ($rtemode != IMP_COMPOSE_HTML))) { echo ' wrap="hard"'; } ?>><?php echo htmlspecialchars($msg) ?></textarea>
     </td>
   </tr>



More information about the dev mailing list