@@ -457,9 +457,11 @@ function _convert_instructions(&$ins, $lvl, $page, $sect, $flags, $root_id, $inc
457457 array_push ($ ins , array ('plugin ' , array ('include_closelastsecedit ' , array ($ endpos ))));
458458 }
459459
460+ $ include_secid = (isset ($ flags ['include_secid ' ]) ? $ flags ['include_secid ' ] : NULL );
461+
460462 // add edit button
461463 if ($ flags ['editbtn ' ]) {
462- $ this ->_editbtn ($ ins , $ page , $ sect , $ sect_title , ($ flags ['redirect ' ] ? $ root_id : false ));
464+ $ this ->_editbtn ($ ins , $ page , $ sect , $ sect_title , ($ flags ['redirect ' ] ? $ root_id : false ), $ include_secid );
463465 }
464466
465467 // add footer
@@ -484,7 +486,6 @@ function _convert_instructions(&$ins, $lvl, $page, $sect, $flags, $root_id, $inc
484486 }
485487
486488 // add instructions entry wrapper
487- $ include_secid = (isset ($ flags ['include_secid ' ]) ? $ flags ['include_secid ' ] : NULL );
488489 array_unshift ($ ins , array ('plugin ' , array ('include_wrap ' , array ('open ' , $ page , $ flags ['redirect ' ], $ include_secid ))));
489490 if (isset ($ flags ['beforeeach ' ]))
490491 array_unshift ($ ins , array ('entity ' , array ($ flags ['beforeeach ' ])));
@@ -516,11 +517,11 @@ function _footer($page, $sect, $sect_title, $flags, $footer_lvl, $root_id) {
516517 *
517518 * @author Michael Klier <[email protected] > 518519 */
519- function _editbtn (&$ ins , $ page , $ sect , $ sect_title , $ root_id ) {
520+ function _editbtn (&$ ins , $ page , $ sect , $ sect_title , $ root_id, $ hid = '' ) {
520521 $ title = ($ sect ) ? $ sect_title : $ page ;
521522 $ editbtn = array ();
522523 $ editbtn [0 ] = 'plugin ' ;
523- $ editbtn [1 ] = array ('include_editbtn ' , array ($ title ));
524+ $ editbtn [1 ] = array ('include_editbtn ' , array ($ title, $ hid ));
524525 $ ins [] = $ editbtn ;
525526 }
526527
0 commit comments