Commit 77a72824 authored by drumm's avatar drumm
Browse files

#92059 by Rok Zlender. Disab;e color picker when private file dopwnloads are...

#92059 by Rok Zlender. Disab;e color picker when private file dopwnloads are being used (temporary solution).
parent 4476a2c0
......@@ -6,7 +6,8 @@
*/
function color_form_alter($form_id, &$form) {
// Insert the color changer into the theme settings page.
if ($form_id == 'system_theme_settings' && color_get_info(arg(4)) && function_exists('gd_info')) {
// TODO: Last condition in the following if disables color changer when private files are used this should be solved in a different way. See issue #92059.
if ($form_id == 'system_theme_settings' && color_get_info(arg(4)) && function_exists('gd_info') && variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PUBLIC) {
$form['color'] = array(
'#type' => 'fieldset',
'#title' => t('Color scheme'),
......@@ -539,4 +540,4 @@ function _color_rgb2hsl($rgb) {
$h /= 6;
}
return array($h, $s, $l);
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment