Skip to content

Commit

Permalink
Merge pull request #679 from mschlenstedt/master
Browse files Browse the repository at this point in the history
Replace fix string "CKG Edit" by $title
  • Loading branch information
turnermm committed May 29, 2023
2 parents e541604 + c123e51 commit d144746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/meta.php
Expand Up @@ -418,7 +418,7 @@ function insertFormElement(Doku_Event $event, $param) {
}

if(is_a($event->data,\dokuwiki\Form\Form::class)) {
$button = '&nbsp;<button name="do[cancel]" type="submit" class="button" title="' . $title .'" id="edbtn__edit" value="CKG Edit" ' . $disabled. ' style = "' .$dwedit_only.'" onclick="return setDWEditCookie(1, this);"/>CKG Edit</button>&nbsp;';
$button = '&nbsp;<button name="do[cancel]" type="submit" class="button" title="' . $title .'" id="edbtn__edit" value="CKG Edit" ' . $disabled. ' style = "' .$dwedit_only.'" onclick="return setDWEditCookie(1, this);"/>' . $title .'</button>&nbsp;';
$pos = $event->data->findPositionByAttribute('type','submit');
$pos+=3;
$event->data->addHTML($button,$pos);
Expand Down

0 comments on commit d144746

Please sign in to comment.