Intorduce simpleFilters setting
Replaces SimpleImageFilters with a personal setting, covers image filters and the simpler entry edit overview
This commit is contained in:
@ -293,6 +293,7 @@ switch($serendipity['GET']['adminAction']) {
|
||||
$data['use_iframe'] = $serendipity['use_iframe'];
|
||||
$data['page'] = $page;
|
||||
$data['totalEntries'] = serendipity_getTotalEntries();
|
||||
$data['simpleFilters'] = $serendipity['simpleFilters'];
|
||||
|
||||
if (is_array($entries)) {
|
||||
$data['is_entries'] = true;
|
||||
|
@ -1959,7 +1959,7 @@ function serendipity_getimagesize($file, $ft_mime = '', $suf = '') {
|
||||
function serendipity_getImageFields() {
|
||||
global $serendipity;
|
||||
|
||||
if ($serendipity['simpleImageFilters'] !== false) {
|
||||
if ($serendipity['simpleFilters'] !== false) {
|
||||
$x = array(
|
||||
'i.date' => array('desc' => SORT_ORDER_DATE,
|
||||
'type' => 'date'
|
||||
|
@ -630,12 +630,6 @@
|
||||
'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;
|
||||
|
@ -106,7 +106,15 @@
|
||||
'type' => 'bool',
|
||||
'default' => true,
|
||||
'permission' => 'personalConfigurationRightPublish',
|
||||
'view' => 'dangerous')
|
||||
'view' => 'dangerous'),
|
||||
|
||||
array('var' => 'simpleFilters',
|
||||
'title' => SIMPLE_FILTERS, // i18n
|
||||
'description' => SIMPLE_FILTERS_DESC, // i18n
|
||||
'type' => 'bool',
|
||||
'permission' => 'personalConfiguration',
|
||||
'default' => true,
|
||||
'flags' => array('config'))
|
||||
));
|
||||
|
||||
$res['defaults'] =
|
||||
|
Reference in New Issue
Block a user