Add option to simplify image filters
Default on (at least for the test), needs new language constants
This commit is contained in:
parent
7a9d867fd1
commit
94f1198fe3
@ -1959,6 +1959,19 @@ function serendipity_getimagesize($file, $ft_mime = '', $suf = '') {
|
||||
function serendipity_getImageFields() {
|
||||
global $serendipity;
|
||||
|
||||
if ($serendipity['simpleImageFilters'] !== false) {
|
||||
$x = array(
|
||||
'i.date' => array('desc' => SORT_ORDER_DATE,
|
||||
'type' => 'date'
|
||||
),
|
||||
|
||||
'i.extension' => array('desc' => SORT_ORDER_EXTENSION
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
} else {
|
||||
|
||||
$x = array(
|
||||
'i.date' => array('desc' => SORT_ORDER_DATE,
|
||||
'type' => 'date'
|
||||
@ -2002,6 +2015,7 @@ function serendipity_getImageFields() {
|
||||
$x['bp.' . $name]['type'] = 'int';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $x;
|
||||
}
|
||||
|
@ -630,6 +630,12 @@
|
||||
'type' => 'textarea',
|
||||
'permission' => 'blogConfiguration',
|
||||
'default' => ''),
|
||||
array('var' => 'simpleImageFilters',
|
||||
'title' => SIMPLE_IMAGE_FILTERS, // i18n
|
||||
'description' => SIMPLE_IMAGE_FILTERS_DESC, // i18n
|
||||
'type' => 'bool',
|
||||
'permission' => 'blogConfiguration',
|
||||
'default' => true),
|
||||
));
|
||||
|
||||
return $res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user