[dev] Why not use $browser->hasFeature('javascript');

David U. davidu@everydns.net
Mon, 9 Sep 2002 00:24:46 -0500


Hi folks,

In a few places in  templates/edit/edit.inc (and probably others) there are
things like:

<?php if (($browser->isBrowser('msie') && $browser->getMajor() >= 4) ||
          ($browser->isBrowser('mozilla') && $browser->getMajor() >= 5)): ?>
  <span id="start_wday"></span>
  <script language="JavaScript" type="text/javascript">
   updateWday('start_wday');
  </script>
<?php endif; ?>

Why aren't these just using: $browser->hasFeature('javascript') ?

If there's no reason, I'll send the patch.

-davidu

--
"Never doubt that a small group of thoughtful citizens can change the
world. Indeed, it is the only thing that ever has." --Margaret Mead