image_get_toolkit
includes/image.inc, строка 29
- Версии
- 5 – 6
image_get_toolkit()
Retrieve the name of the currently used toolkit.
Возвращаемое значение
String containing the name of the toolkit.
Код
<?php
function image_get_toolkit() {
static $toolkit;
if (!$toolkit) {
$toolkit = variable_get('image_toolkit', 'gd');
$toolkit_file = './includes/image.'.$toolkit.'.inc';
if ($toolkit != 'gd' && file_exists($toolkit_file)) {
include_once $toolkit_file;
}
elseif (!image_gd_check_settings()) {
$toolkit = FALSE;
}
}
return $toolkit;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии