From ec9525a6adf0e9bc857429c8da3299c5e70e34a9 Mon Sep 17 00:00:00 2001
From: garvinhicking <garvinhicking>
Date: Tue, 10 May 2005 16:35:31 +0000
Subject: [PATCH] Also look for "convert.exe", satisfying windows users. Thanks
 to pattyjj from IRC!

---
 include/functions_installer.inc.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/functions_installer.inc.php b/include/functions_installer.inc.php
index f5cf285..b3cef23 100644
--- a/include/functions_installer.inc.php
+++ b/include/functions_installer.inc.php
@@ -168,6 +168,10 @@ function serendipity_query_default($optname, $default, $usertemplate = false, $t
                 if (!empty($dir) && (function_exists('is_executable') && @is_executable($dir . '/convert')) || @is_file($dir . '/convert')) {
                     return $dir . '/convert';
                 }
+
+                if (!empty($dir) && (function_exists('is_executable') && @is_executable($dir . '/convert.exe')) || @is_file($dir . '/convert.exe')) {
+                    return $dir . '/convert.exe';
+                }
             }
             return $default;
 
-- 
2.39.5