diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-03 05:26:47 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-03 05:26:47 +0000 |
commit | 675cc693939199fe95c08f851bec8f4e4ea6807c (patch) | |
tree | 3adfab701e17117c1ff04146bb10701c7ce1763a /core | |
parent | 57be3cd78b3f56eeb0375bd554d53885d19325f5 (diff) |
Detect when imagerotate is missing
Diffstat (limited to 'core')
-rw-r--r-- | core/views/admin_graphics.html.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/views/admin_graphics.html.php b/core/views/admin_graphics.html.php index 7fb05040..19f80cba 100644 --- a/core/views/admin_graphics.html.php +++ b/core/views/admin_graphics.html.php @@ -23,9 +23,13 @@ <p> <? printf(_("The GD graphics library is an extension to PHP commonly installed most webservers. Please refer to the %sGD website%s for more information."), "<a href=\"http://www.boutell.com/gd/\">", "</a>") ?> </p> - <? if ($tk->gd): ?> + <? if ($tk->gd["GD Version"] && function_exists('imagerotate')): ?> <p class="gSuccess"> - <? printf(_("You have GD version %s."), $tk->gd) ?> + <? printf(_("You have GD version %s."), $tk->gd["GD Version"]) ?> + </p> + <? elseif ($tk->gd["GD Version"]): ?> + <p class="gWarning"> + <? printf(_("You have GD version %s, but it lacks image rotation."), $tk->gd["GD Version"]) ?> </p> <? else: ?> <p class="gInfo"> |