Hello
I use the actual newest stable release of dokuwiki on my ubuntu server.
I have a question: If I change an entry I have a CheckBox "small change" (I hope it is in english like this, it is in German: "kleine Änderung").
Is it like this, that I won't get an email notification if I applied for notification for this entry but the CheckBox is set?
If not, could it be set like this?
Or what is the use for this CheckBox?
At the moment, I disabled the notification at all because I get mails for each little change, but I don't know if my partners check this CheckBox each time or when the don't.
frank
EDIT: I just did a test with login by another user and doing small changes. Indeedly the small changes triggers no mail!
So I searched a bit in the code of dokuwiki and I found this in /inc/html.php:
...
function html_minoredit(){
global $conf;
global $lang;
// minor edits are for logged in users only
if(!$conf['useacl'] || !$_SERVER['REMOTE_USER']){
return false;
}
$p = array();
$p['tabindex'] = 3;
if(!empty($_REQUEST['minor'])) $p['checked']='checked';
return form_makeCheckboxField('minor', '1', $lang['minoredit'], 'minoredit', 'nowrap', $p);
}
...
So there is already a check if the CheckBox with id="minoredit" (which is the above CheckBox "small changes") is checked by a request parameter.
If I set here:
...
// if(!empty($_REQUEST['minor'])) $p['checked']='checked';
$p['checked']='checked';
...
the CheckBox is set already which is a big help.
But maybe this is much easier done at another place, maybe by settings?
Can I check the minoredit CheckBox by default in settings?
I didn't find it.
With the CheckBox set by default, only if I have bigger changes, I will need to uncheck manually, which would be my favorite.
Till somebody tells me here a better way, I will hardcode the 'checked' like in my example.