Minor fix to OS detection in install
authorDan
Sat, 17 Jan 2009 11:31:45 -0500
changeset 315 01e7206b4441
parent 312 36bcc9212837
child 316 42419c99471c
Minor fix to OS detection in install
install.php
--- a/install.php	Thu Nov 27 10:38:00 2008 -0500
+++ b/install.php	Sat Jan 17 11:31:45 2009 -0500
@@ -1531,7 +1531,7 @@
       <?php
       if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') )
       {
-        $patch_necessary = ( strtolower(PHP_OS) == 'win32' && substr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
+        $patch_necessary = ( ( strtolower(PHP_OS) == 'win32' || strtolower(PHP_OS) == 'winnt' ) && substr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
         ?>
           <div class="usermessage">
             <b>Your copy of Enano has the Windows mod_rewrite workaround patch enabled.</b><br />