]> git.mxchange.org Git - friendica.git/commitdiff
This error message had me confused for about twenty minutes. I couldn't
authorThomas Willingham <beardyunixer@beardyunixer.com>
Mon, 19 Dec 2016 00:10:11 +0000 (00:10 +0000)
committerThomas Willingham <beardyunixer@beardyunixer.com>
Mon, 19 Dec 2016 00:10:11 +0000 (00:10 +0000)
figure out what was wrong with my imagick install that would make it give
me an orange button if it was installed.  Of course, the problem was that
it wasn't installed, and the message was worded badly.  This is a bit less
confusing.

mod/install.php

index d18d4ac3e29fba1048d431529bbbd9a8f95e439a..97092c140f2f58ef9bd035d1008e5123a0be1f4f 100755 (executable)
@@ -548,9 +548,14 @@ function check_imagik(&$checks) {
                        $gif = true;
                }
        }
-       check_add($checks, t('ImageMagick PHP extension is installed'), $imagick, false, "");
-       if ($imagick) {
-               check_add($checks, t('ImageMagick supports GIF'), $gif, false, "");
+       if ($imagick == false) {
+               check_add($checks, t('ImageMagick PHP extension is not installed'), $imagick, false, "");
+               }
+       else {
+               check_add($checks, t('ImageMagick PHP extension is installed'), $imagick, false, "");
+               if ($imagick) {
+                       check_add($checks, t('ImageMagick supports GIF'), $gif, false, "");
+               }
        }
 }